<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Power BI Custom Visuals development - Issue with font &amp;quot;DIN&amp;quot; for SVG in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Power-BI-Custom-Visuals-development-Issue-with-font-quot-DIN/m-p/4412663#M12199</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/836341"&gt;@Andrelele&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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. &lt;A href="https://github.com/dm-p/powerbi-visuals-html-content/blob/master/style/visual.less#L117-L130" target="_self"&gt;Here's an example of how I've solved the problem for the HTML Content visual&lt;/A&gt;, which involved:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Adding the font file to my visual's CSS via a data URI.&lt;/LI&gt;
&lt;LI&gt;Creating aliases for the font face (so that either &lt;STRONG&gt;DIN&lt;/STRONG&gt; or&amp;nbsp;&lt;STRONG&gt;wf_standard-font&lt;/STRONG&gt; works as a valid &lt;FONT face="courier new,courier"&gt;font-family&lt;/FONT&gt;. If you don't do this, using the underlying &lt;FONT face="courier new,courier"&gt;font-family&lt;/FONT&gt; you're trying in your OP should work fine, though.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Sun, 16 Feb 2025 21:54:31 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2025-02-16T21:54:31Z</dc:date>
    <item>
      <title>Power BI Custom Visuals development - Issue with font "DIN" for SVG</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Power-BI-Custom-Visuals-development-Issue-with-font-quot-DIN/m-p/4410837#M12188</link>
      <description>&lt;P&gt;hello dear people,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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 help of the FontControl inside my Custom Visual project file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I change the font to "DIN", the FontControl does not apply it to its element, instead uses something else. I looked up with the console.log on Power BI Webservice which value it uses instead of "DIN". And it shows "wf_standard-font, helvetica, arial, sans-serif" when I select "DIN" in my FontControl.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The FontControl has bold, italic, underline, fontSize and fontFamily as properties. As an alternative I tried to use the FontPicker but unfortunately had the same outcome as the FontControl.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked up several other posts in our Power BI Forums regarding to font, with no success for me.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-visual-development-issue-rendering-font-quot-DIN-quot/m-p/766692" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-visual-development-issue-rendering-font-quot-DIN-quot/m-p/766692&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Fontfamily-DIN-doesn-t-work-in-theme-json/m-p/1706186#M676337" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/Fontfamily-DIN-doesn-t-work-in-theme-json/m-p/1706186#M676337&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Change-fontfamily-power-bi-report/td-p/562284" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/Change-fontfamily-power-bi-report/td-p/562284&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-visual-development-issue-rendering-font-quot-DIN-quot/m-p/773796" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-visual-development-issue-rendering-font-quot-DIN-quot/m-p/773796&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a different approach I tried to make use of the Custom Themes of Power BI Desktop. With a .json I set the fontFamily globally to "DIN" and with "wf_standard-font, helvetica, arial, sans-serif" too. When I loaded my Custom Visual to Power BI Desktop, the results are the same as prior to my approach with FontControl/FontPicker.&lt;/P&gt;&lt;P&gt;Here are the links for the implementation of Custom Themes in Power BI:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/README.md" target="_blank"&gt;https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/README.md&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://dataveld.com/2018/01/05/control-and-expand-your-power-bi-font-selection-with-themes/" target="_blank"&gt;https://dataveld.com/2018/01/05/control-and-expand-your-power-bi-font-selection-with-themes/&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Theming-Usage-of-the-quot-Segoe-Bold-quot-font/td-p/496531" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/Theming-Usage-of-the-quot-Segoe-Bold-quot-font/td-p/496531&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Here are screenshots of my project as reference:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-14 102632.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1239114i9A7E29C8D8DD817F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-02-14 102632.png" alt="Screenshot 2025-02-14 102632.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And for some reason in the format pane under General &amp;gt; Title, the font uses the correct "DIN" in contrast to my Visual &amp;gt; "Wert" with "DIN":&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-14 103424.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1239116iEFF4BF33CCBF73CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-02-14 103424.png" alt="Screenshot 2025-02-14 103424.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-14 103446.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1239115i10BA1ABDEA3F42D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-02-14 103446.png" alt="Screenshot 2025-02-14 103446.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-14 103342.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1239117i53A9FF1B50057B4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-02-14 103342.png" alt="Screenshot 2025-02-14 103342.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 10:10:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Power-BI-Custom-Visuals-development-Issue-with-font-quot-DIN/m-p/4410837#M12188</guid>
      <dc:creator>Andrelele</dc:creator>
      <dc:date>2025-02-14T10:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Custom Visuals development - Issue with font "DIN" for SVG</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Power-BI-Custom-Visuals-development-Issue-with-font-quot-DIN/m-p/4412663#M12199</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/836341"&gt;@Andrelele&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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. &lt;A href="https://github.com/dm-p/powerbi-visuals-html-content/blob/master/style/visual.less#L117-L130" target="_self"&gt;Here's an example of how I've solved the problem for the HTML Content visual&lt;/A&gt;, which involved:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Adding the font file to my visual's CSS via a data URI.&lt;/LI&gt;
&lt;LI&gt;Creating aliases for the font face (so that either &lt;STRONG&gt;DIN&lt;/STRONG&gt; or&amp;nbsp;&lt;STRONG&gt;wf_standard-font&lt;/STRONG&gt; works as a valid &lt;FONT face="courier new,courier"&gt;font-family&lt;/FONT&gt;. If you don't do this, using the underlying &lt;FONT face="courier new,courier"&gt;font-family&lt;/FONT&gt; you're trying in your OP should work fine, though.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 21:54:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Power-BI-Custom-Visuals-development-Issue-with-font-quot-DIN/m-p/4412663#M12199</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2025-02-16T21:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Custom Visuals development - Issue with font "DIN" for SVG</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Power-BI-Custom-Visuals-development-Issue-with-font-quot-DIN/m-p/4413531#M12200</link>
      <description>&lt;P&gt;Dear Daniel,&lt;BR /&gt;&lt;BR /&gt;it worked in my project! Thank you very much.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrelele&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 10:02:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Power-BI-Custom-Visuals-development-Issue-with-font-quot-DIN/m-p/4413531#M12200</guid>
      <dc:creator>Andrelele</dc:creator>
      <dc:date>2025-02-17T10:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Custom Visuals development - Issue with font "DIN" for SVG</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Power-BI-Custom-Visuals-development-Issue-with-font-quot-DIN/m-p/5152527#M13137</link>
      <description>&lt;P&gt;We have ended up with the same solution.&lt;BR /&gt;Still, it is a strange behavior from the fontControl available in the settings to list a DIN entry and pass it as `v&lt;SPAN&gt;wf_standard-font, helvetica, arial, sans-serif` to custom visuals,&amp;nbsp;while this font is not av&lt;/SPAN&gt;ailable to the visual sandbox and fallsback to a browser available fontFamily which DIN is not part of.&lt;BR /&gt;As far as Microsoft chose DIN as the default fontfamilly for number readability, they should inject the&amp;nbsp;&lt;STRONG&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1229273"&gt;@FONT&lt;/a&gt;-face &lt;/STRONG&gt;in the iFrame document of the custom visuals.&lt;BR /&gt;Currently, if you inspect the powerBi page document, it has 135 fonts available but 0 in the visual sandbox...&lt;BR /&gt;I have added an idea here:&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Inject-Power-BI-default-fonts-font-face-into-custom-visual/idi-p/5152523" target="_blank" rel="noopener"&gt;Inject Power BI default fonts (@font-face) into cu... - Microsoft Fabric Community&lt;/A&gt;&lt;BR /&gt;It should take no more than 30 seconds to a Microsoft engineer to implement.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2026 13:24:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Power-BI-Custom-Visuals-development-Issue-with-font-quot-DIN/m-p/5152527#M13137</guid>
      <dc:creator>OlivierH71</dc:creator>
      <dc:date>2026-04-17T13:24:08Z</dc:date>
    </item>
  </channel>
</rss>

