Forum Discussion

Andrelele's avatar
Andrelele
Frequent Visitor
1 year ago
Solved

Power BI Custom Visuals development - Issue with font "DIN" for SVG

hello dear people,   in Power BI Custom Visuals I'm trying to develop a simple card visual. There I want to have the possibility to change the fonts of my elements in my SVG. I do this with the hel...
  • dm-p's avatar
    1 year ago

    Hi Andrelele,

     

    For some reason, DIN or the underlying font is unavailable for custom visuals, but you can package it in your visual and reference it to provide some continuity. Here's an example of how I've solved the problem for the HTML Content visual, which involved:

     

    • Adding the font file to my visual's CSS via a data URI.
    • Creating aliases for the font face (so that either DIN or wf_standard-font works as a valid font-family. If you don't do this, using the underlying font-family you're trying in your OP should work fine, though.

     

    Good luck,

     

    Daniel