Forum Discussion
Custom visual development - issue rendering font "DIN"
- 7 years ago
Hi,
1. The latest API supports standard definition of Font list
However it will add all the possible fonts for Power BI (including these that don't work in sandbox).
However, font list may be defined manually as any enumeration in capabilities.json
Unfortunately, I am unfamiliar with all non-working in sandbox fonts, only DIN, but there may be couple of others.
Honestly, I don't recommend to define them manually because I have discussed this question with persons who is in charge of this question and there is a chance that these fonts may be supported in sandbox in the future.
Also, visuals may work in different modes so, it is better to leave this fonts as is.
2. Font size is defined in 'pt' (if it described correctly in capabilities.json)
However, inside visual it may be transformed into 'px' by the code (if developer decided, but original size storing in 'pt' anyway)
Kind Regards,
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]
Hi Evgenii Elkin,
Thank you for your response, time and help.
Sorry for delay in our response.
Couple of our visuals are live on app store. We have DIN as value for the font DIN.
We are trying to test suggession from Daniel.
Appreciate if you can share your thoughts on following.
(Due apologies in case the questions are out of your boundary.)
1. It would be helpful to know name/value (Name & value specified in capabilities.json) for all fonts supported by PBI.
In case you have the list, can you please share it?
Also if the list notes non-public fonts, we will exclude from our custom visuals for time being.
2. Do you happen to know how font size be specified - px or pt, across PBI visuals?
I believe there was a bug noted on the font size and was being addressed.
Related reference link:
https://community.powerbi.com/t5/Issues/Font-size-not-consistent-across-visuals/idi-p/581490
Appreciate your help and time.
Thanks.
Hi,
1. The latest API supports standard definition of Font list
However it will add all the possible fonts for Power BI (including these that don't work in sandbox).
However, font list may be defined manually as any enumeration in capabilities.json
Unfortunately, I am unfamiliar with all non-working in sandbox fonts, only DIN, but there may be couple of others.
Honestly, I don't recommend to define them manually because I have discussed this question with persons who is in charge of this question and there is a chance that these fonts may be supported in sandbox in the future.
Also, visuals may work in different modes so, it is better to leave this fonts as is.
2. Font size is defined in 'pt' (if it described correctly in capabilities.json)
However, inside visual it may be transformed into 'px' by the code (if developer decided, but original size storing in 'pt' anyway)
Kind Regards,
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]
- inserv6 years agoRegular Visitor
Hi Evgenii Elkin,
Thanks so much for response and providing details.
We will try to upgrade our visual to latest version.
Appreciate your help and time.
Thanks.