<?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 embed a font in custom visual in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/embed-a-font-in-custom-visual/m-p/794987#M20805</link>
    <description>&lt;P&gt;I am trying to use Bebas Neue for my custom visual.&amp;nbsp; If a user's machine has Bebas Neue installed, everything looks fine.&amp;nbsp; But if the user doesn't have Bebas Neue font installed, the whole visual went south (using default font).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if there is a way, say, using CSS to embed Bebas Neue font into my visual package?&amp;nbsp; I tried this &lt;A href="https://stackoverflow.com/questions/17035971/how-to-show-fonts-in-websites-which-are-not-installed-in-clients-computer-but-on" target="_blank" rel="noopener"&gt;link&lt;/A&gt;, the 3rd answer, but I cannot get it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 21:44:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-17T21:44:41Z</dc:date>
    <item>
      <title>embed a font in custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/embed-a-font-in-custom-visual/m-p/794987#M20805</link>
      <description>&lt;P&gt;I am trying to use Bebas Neue for my custom visual.&amp;nbsp; If a user's machine has Bebas Neue installed, everything looks fine.&amp;nbsp; But if the user doesn't have Bebas Neue font installed, the whole visual went south (using default font).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if there is a way, say, using CSS to embed Bebas Neue font into my visual package?&amp;nbsp; I tried this &lt;A href="https://stackoverflow.com/questions/17035971/how-to-show-fonts-in-websites-which-are-not-installed-in-clients-computer-but-on" target="_blank" rel="noopener"&gt;link&lt;/A&gt;, the 3rd answer, but I cannot get it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 21:44:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/embed-a-font-in-custom-visual/m-p/794987#M20805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-17T21:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: embed a font in custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/embed-a-font-in-custom-visual/m-p/795099#M20807</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;There's definitely one way to do it, if you don't mind loading from a CDN. Here's an exmaple of loading a font in a custom visual I recently did for fun:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Here's the @font-face declaration in &lt;A href="https://github.com/dm-p/powerbi-visuals-chartxkcd/blob/master/style/visual.less#L3" target="_self"&gt;visual.less&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Here's an example of how I &lt;A href="https://github.com/dm-p/powerbi-visuals-chartxkcd/blob/master/style/visual.less#L8" target="_self"&gt;apply the styling in the same file once declared&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm going to attempt compiling a specific font into a new visual I'm working on but haven't got to it yet to be able to test.&lt;/P&gt;&lt;P&gt;I believe that (if this is possible) then you'll need to ensure that the webpack process includes your font when it builds the visual. I was&lt;A href="https://chriscourses.com/blog/loading-fonts-webpack" target="_self"&gt; going to start with this article&lt;/A&gt; to see if it could be done, falling back to the CDN approach if not. I'd love to hear how you get on if you give it a try!&lt;/P&gt;&lt;P&gt;Hopefully this may give you something to try either way.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 00:37:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/embed-a-font-in-custom-visual/m-p/795099#M20807</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2019-09-18T00:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: embed a font in custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/embed-a-font-in-custom-visual/m-p/796622#M20832</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can easily use the CSS with the &lt;FONT face="courier new,courier"&gt;@font-face&lt;/FONT&gt; route with the font file (*.woff e.g.) as a base64 encoded string, like below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;@font-face&amp;nbsp;{
  font-family: &amp;lt;FontName&amp;gt;
  src:&amp;nbsp;url(data&amp;amp;colon;application/font-woff2;charset=utf-8;base64,&amp;lt;Base64String&amp;gt;) format("woff");
}&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;-JP&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Sep 2019 07:29:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/embed-a-font-in-custom-visual/m-p/796622#M20832</guid>
      <dc:creator>jppp</dc:creator>
      <dc:date>2019-09-19T07:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: embed a font in custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/embed-a-font-in-custom-visual/m-p/797110#M20844</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/3821"&gt;@jppp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where exactly should I put this piece of code and where should I put the font file?&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/3821"&gt;@jppp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can easily use the CSS with the &lt;FONT face="courier new,courier"&gt;@font-face&lt;/FONT&gt; route with the font file (*.woff e.g.) as a base64 encoded string, like below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;@font-face&amp;nbsp;{
  font-family: &amp;lt;FontName&amp;gt;
  src:&amp;nbsp;url(data&amp;amp;colon;application/font-woff2;charset=utf-8;base64,&amp;lt;Base64String&amp;gt;) format("woff");
}&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;-JP&lt;/DIV&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 14:31:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/embed-a-font-in-custom-visual/m-p/797110#M20844</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-19T14:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: embed a font in custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/embed-a-font-in-custom-visual/m-p/797149#M20845</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code snippet should be in the CSS file, preferable at the top.&lt;/P&gt;&lt;P&gt;And you only need your font file to generate a Base64 encoded string (eg via&amp;nbsp;&lt;A href="https://base64converter.com/" target="_blank"&gt;https://base64converter.com/&lt;/A&gt;) which you include in the CSS file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-JP&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 15:15:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/embed-a-font-in-custom-visual/m-p/797149#M20845</guid>
      <dc:creator>jppp</dc:creator>
      <dc:date>2019-09-19T15:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: embed a font in custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/embed-a-font-in-custom-visual/m-p/2933079#M39999</link>
      <description>&lt;P&gt;We are using liferay to perform Power BI iframe embed. Tried importing the font using CDN. This doesn't seem to work . Any other suggestions? Please advise. Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 13:51:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/embed-a-font-in-custom-visual/m-p/2933079#M39999</guid>
      <dc:creator>aparna-bh</dc:creator>
      <dc:date>2022-11-28T13:51:56Z</dc:date>
    </item>
  </channel>
</rss>

