<?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: Custom font not displaying in Experience Builder developer version in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-font-not-displaying-in-experience-builder/m-p/1281969#M6758</link>
    <description>&lt;P&gt;I was also struggling with custom fonts. The instructions on the developer site are currently wrong. See instructions from Esri Support below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To use local fonts, In style.scss we have to use @font-face instead of @import and mention the following properties:&lt;BR /&gt;&lt;BR /&gt;@font-face {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; font-family: 'Dancing Script';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; src: url('./assets/fonts/DS.ttf') format('truetype');&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Also, ttf is working woff and woff2 is not working with Builder. We also, have to update the "variable.json" with the FamilyBase.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2023 18:05:21 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2023-04-24T18:05:21Z</dc:date>
    <item>
      <title>Custom font not displaying in Experience Builder developer version</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-font-not-displaying-in-experience-builder/m-p/1218078#M5425</link>
      <description>&lt;P&gt;We have created a custom theme extension in Experience Builder Developer edition v1.9. We want to add the custom font&amp;nbsp; "Segoe UI". Following the documentation we have:&lt;/P&gt;&lt;P&gt;Added the font in variables.json:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"typography"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt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nbsp; },&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Added the font ttf files into the assets/fonts folder in our theme extension.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, when I look at the drop down list to select a font in Experience Builder, the Segoe UI font is not listed as an option. Has anyone successfully used a custom font in Experience Builder?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 01 Oct 2022 02:14:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-font-not-displaying-in-experience-builder/m-p/1218078#M5425</guid>
      <dc:creator>PaulCharsley</dc:creator>
      <dc:date>2022-10-01T02:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Custom font not displaying in Experience Builder developer version</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-font-not-displaying-in-experience-builder/m-p/1281969#M6758</link>
      <description>&lt;P&gt;I was also struggling with custom fonts. The instructions on the developer site are currently wrong. See instructions from Esri Support below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To use local fonts, In style.scss we have to use @font-face instead of @import and mention the following properties:&lt;BR /&gt;&lt;BR /&gt;@font-face {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; font-family: 'Dancing Script';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; src: url('./assets/fonts/DS.ttf') format('truetype');&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Also, ttf is working woff and woff2 is not working with Builder. We also, have to update the "variable.json" with the FamilyBase.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 18:05:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-font-not-displaying-in-experience-builder/m-p/1281969#M6758</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2023-04-24T18:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom font not displaying in Experience Builder developer version</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-font-not-displaying-in-experience-builder/m-p/1470809#M12627</link>
      <description>&lt;P&gt;It's a year later so maybe this was fixed. The way I got this to work with a local woff was by including a reference to the css in my style.ts and using absolute paths in my font.scss file. I tried using relative paths but it just didn't work. The global style body isn't necessary (you should do this through variables.jons I think) I just put it there to ensure that code was working&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWilton_1-1715747342684.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104147iA63224A3844C6DDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWilton_1-1715747342684.png" alt="DavidWilton_1-1715747342684.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidWilton_2-1715747651469.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104148i44BAEBFA7133DFF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidWilton_2-1715747651469.png" alt="DavidWilton_2-1715747651469.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 04:34:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-font-not-displaying-in-experience-builder/m-p/1470809#M12627</guid>
      <dc:creator>DavidWilton</dc:creator>
      <dc:date>2024-05-15T04:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom font not displaying in Experience Builder developer version</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-font-not-displaying-in-experience-builder/m-p/1475196#M12695</link>
      <description>&lt;P&gt;Actually, this didn't work once I'd deployed the app. I ended up doing it in the style.ts like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const globalStyles = () =&amp;gt; {
  return css`
  body {
    font-family: 'Gotham', sans-serif;
    --pop-blue-light: #00AECB;
    --pop-yellow: #FFC726;
    --pop-orange: #F07B05;
    --pop-magenta: #E50E56;
    --pop-purple: #645FAA;
    --pop-green: #008850;
    --pop-blue-light: #00AECB;
    --pop-blue-mid: #277BB4;
  }
  @font-face {
    font-family: "Gotham";
    src: url("${urlUtils.getFixedRootPath()}themes/my-light/assets/fonts/GothamHTF-Book.woff2") format("woff2"),
      url("${urlUtils.getFixedRootPath()}themes/my-light/assets/fonts/GothamHTF-Book.woff") format("woff");
    font-weight: normal;
    font-style: normal;
  }
  
  @font-face {
    font-family: "Gotham";
    src: url("${urlUtils.getFixedRootPath()}themes/my-light/assets/fonts/GothamHTF-Bold.woff2") format("woff2"),
      url("${urlUtils.getFixedRootPath()}themes/my-light/assets/fonts/GothamHTF-Bold.woff") format("woff");
    font-weight: bold;
    font-style: normal;
  }
  
`
}

// global styles
export { globalStyles as Global }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 03:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-font-not-displaying-in-experience-builder/m-p/1475196#M12695</guid>
      <dc:creator>DavidWilton</dc:creator>
      <dc:date>2024-05-20T03:18:25Z</dc:date>
    </item>
  </channel>
</rss>

