<?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: Arcgis fonts issue in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-fonts-issue/m-p/1285180#M81024</link>
    <description>&lt;P&gt;how did you point from&amp;nbsp;&lt;A href="https://static.arcgis.com/fonts" rel="nofollow noopener noreferrer" target="_blank"&gt;https://static.arcgis.com/fonts&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://myserver.com/fonts" rel="nofollow noopener noreferrer" target="_blank"&gt;https://myserver.com/fonts&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 14:40:13 GMT</pubDate>
    <dc:creator>davidbeales</dc:creator>
    <dc:date>2023-05-03T14:40:13Z</dc:date>
    <item>
      <title>Arcgis fonts issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-fonts-issue/m-p/102068#M9368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having issues on arcgis fonts . The arcgis api 4.x has a JavaScript file init.js where the fonts path is provided as &lt;A href="https://static.arcgis.com"&gt;https://static.arcgis.com&lt;/A&gt;/fonts&amp;nbsp;where I am on the isolated environment with no internet access .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to add labels on the feature layer it gives error that fonts not found .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried accessing the &lt;A href="https://static.arcgis.com/fonts"&gt;https://static.arcgis.com/fonts&lt;/A&gt;&amp;nbsp;to download all the fonts to my local machine so that I can change the path in init.js file but I get error as page not found.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me where i can download all the fonts .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 15:10:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-fonts-issue/m-p/102068#M9368</guid>
      <dc:creator>KafilBaig</dc:creator>
      <dc:date>2020-03-10T15:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis fonts issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-fonts-issue/m-p/102069#M9369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently, &lt;SPAN style="background-color: #ffffff;"&gt;we do not offer the ability to download the fonts from static.arcigs.com. We are investigating the ability to package fonts for offline usage.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have ArcGIS Enterprise, at 10.7, there are a few fonts packaged with Enterprise in .pbf:&lt;/P&gt;&lt;P&gt;C:\Program Files\ArcGIS\Portal\apps\fonts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, w&lt;SPAN style="font-size: 11.0pt;"&gt;ith ArcGIS Pro, you can create a map with label classes having the fonts you want, then create a vtpk (even if there is no data). Then unzip the vtpk and extract the fonts.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 17:59:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-fonts-issue/m-p/102069#M9369</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-03-10T17:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis fonts issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-fonts-issue/m-p/102070#M9370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for help Noah.&lt;/P&gt;&lt;P&gt;I took the few fonts packaged with Enterprise 10.7 and hosted in my server and pointed the &lt;A href="https://static.arcgis.com/fonts"&gt;https://static.arcgis.com/fonts&lt;/A&gt;&amp;nbsp;to &lt;A href="https://myserver.com/fonts"&gt;https://myserver.com/fonts&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked for me. Hope this helps for people who working in offline environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2020 03:55:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-fonts-issue/m-p/102070#M9370</guid>
      <dc:creator>KafilBaig</dc:creator>
      <dc:date>2020-03-19T03:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis fonts issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-fonts-issue/m-p/1141999#M76292</link>
      <description>&lt;P&gt;hello friends I have a similar problem. but I can't find above location . how can I download this fonts?&lt;/P&gt;&lt;P&gt;thank&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 08:15:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-fonts-issue/m-p/1141999#M76292</guid>
      <dc:creator>mahdicmptr</dc:creator>
      <dc:date>2022-02-09T08:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis fonts issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-fonts-issue/m-p/1285180#M81024</link>
      <description>&lt;P&gt;how did you point from&amp;nbsp;&lt;A href="https://static.arcgis.com/fonts" rel="nofollow noopener noreferrer" target="_blank"&gt;https://static.arcgis.com/fonts&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://myserver.com/fonts" rel="nofollow noopener noreferrer" target="_blank"&gt;https://myserver.com/fonts&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 14:40:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-fonts-issue/m-p/1285180#M81024</guid>
      <dc:creator>davidbeales</dc:creator>
      <dc:date>2023-05-03T14:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis fonts issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-fonts-issue/m-p/1311392#M81766</link>
      <description>&lt;LI-CODE lang="javascript"&gt;import esriConfig from "@arcgis/core/config.js";

esriConfig.fontsUrl = "/fonts";&lt;/LI-CODE&gt;&lt;P&gt;You probably figured it out already, but this is an example of how you override the fonts URL for anyone else looking for the answer.&amp;nbsp; In our case, hosting it as a static file under the fonts folder.&amp;nbsp; We're having challenges with that file once deployed to IIS, but that's another story.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 07:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-fonts-issue/m-p/1311392#M81766</guid>
      <dc:creator>Brice</dc:creator>
      <dc:date>2023-07-25T07:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis fonts issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-fonts-issue/m-p/1567414#M86233</link>
      <description>&lt;P&gt;Hi all, I am working with an offline installation of Experience Builder (v1.15), and I am trying to solve this fonts issue as well. I downloaded the .pbf fonts from my 10.8.1 Portal installation directory, hosted them in IIS on my server, and set the esriConfig.fontsUrl to point at my server.&lt;/P&gt;&lt;P&gt;This process works when I download my Experience and host it on the same server as my fonts. &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/665865"&gt;@Brice&lt;/a&gt;&amp;nbsp;- you mentioned you were having issues once the app is deployed to IIS. Unfortunately, my dilemma is the opposite; I can access the fonts from IIS, but I am getting the following CORS error when I am developing my application from localhost:&lt;/P&gt;&lt;P&gt;"Access to fetch at '&lt;A href="https://my.host.server/fonts/arial-bold/0-255.pbf" target="_blank" rel="noopener"&gt;https://my.host.server/fonts/arial-bold/0-255.pbf&lt;/A&gt;' from origin '&lt;A href="https://localhost.com:3001" target="_blank" rel="noopener"&gt;https://localhost.com:3001&lt;/A&gt;' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."&lt;/P&gt;&lt;P&gt;I adding a&amp;nbsp;HTTP Response Header for localhost.com:3001 to my fonts folder in IIS, but I'm still not having much luck. I also tried hosting the same font files in &amp;lt;ArcGIS Experience Builder Installation Directory&amp;gt;/server/public/apps/fonts, and setting the esriConfig.fontsUrl dynamically with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if (process.env.NODE_ENV === 'development') {
  esriConfig.fontsUrl = 'https://localhost.com:3001/apps/fonts'
} else {
  esriConfig.fontsUrl = 'https://my.host.server/fonts';
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to access the font files by entering '&lt;A href="https://localhost.com:3001/fonts/arial-bold/0-255.pbf" target="_blank" rel="noopener"&gt;https://localhost.com:3001/apps/fonts/arial-bold/0-255.pbf&lt;/A&gt;' into the browser, but when I try to load a Web Map with labels with Arial-Bold fonts, I get the following error: "[esri.views.2d.engine.webgl.TextureManager] e {name: 'mapview-invalid-resource', details: undefined, message: 'Couldn't find font arial-bold. Falling back to Arial Unicode MS Regular'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/665865"&gt;@Brice&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/161710"&gt;@KafilBaig&lt;/a&gt;&amp;nbsp;- How are you able to access the hosted static fonts from localhost? Did you use a CORS header, a local copy, or something else? Any pointers would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 18:59:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-fonts-issue/m-p/1567414#M86233</guid>
      <dc:creator>ATFerguson</dc:creator>
      <dc:date>2024-12-11T18:59:19Z</dc:date>
    </item>
  </channel>
</rss>

