Forum Discussion
Font setting for custom visual
I am currently developing some custom visuals and I want to have settings for text. I have seen several controls where there is control used for setting the fon, size, bold, italic and underline. See screenshot.
This is exactly what I want to use. I can not find how to define this in capabilities.json nor how to implement this in the settings class.
I have googled all over the net, but can not seem to find the answer.
Is there anyone who can help me out on this?
Hi Anonymous,
If this is the new format pane that's on by default in Desktop as of Feb (and assuming you're using a core visual for reference), I believe that there are no APIs for custom visual developers to mimic these layouts yet and properties will be need to be laid out like how the old pane handles them in this situation (same core visual with pane switched back to old):
I have also asked the team previously, but have yet to get an ETA for this.
If you're using a custom visual for your original screenshot, can you please provide which one you're using? I'm curious to see if other vendors have managed this somehow.
Regards,
Daniel
6 Replies
- AnonymousNot applicable
Thanks Anonymous
It is helpful, but it is not quite what I want to achieve. It is the workaround solution, but I am trying to make it work like this:
I will try to contact the custom visual support team
Thanks!
When they can give me the solution I will add it here as well.
- AnonymousNot applicable
Hi Anonymous ,
Do you get any other more suitable ways to customize fonts from the custom visual support team? If so, could you please share it here if it is convenient? Then the other forum members with similar problems as yours can find the solution easily. Thanks in advance for your sharing and time.
Best Regards
- AnonymousNot applicable
So far it's been a deafening sound of silence. I am afraid I will never get an answer.
If and when I get an answer I will share it here.
- AnonymousNot applicable
Hi Anonymous ,
You can refer the following links to set the custom font style for the custom visual, hope they can help you.
Custom visual development - issue rendering font "DIN"
2. Font Size Property Unit Issue in Custom Visual
"properties": { "fontSize": { "displayName": "Category Font Size", "type": { "formatting": { "fontSize": true } } },3. Custom font for Custom Visual
In addition, you can contact custom visual support team and ask for professional help.
Best Regards