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 https://static.arcgis.com/fonts where I am on the isolated environment with no internet access .
When I try to add labels on the feature layer it gives error that fonts not found .
I tried accessing the https://static.arcgis.com/fonts 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.
Please guide me where i can download all the fonts .
Solved! Go to Solution.
Currently, 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.
If you have ArcGIS Enterprise, at 10.7, there are a few fonts packaged with Enterprise in .pbf:
C:\Program Files\ArcGIS\Portal\apps\fonts
Alternatively, with 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.
Currently, 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.
If you have ArcGIS Enterprise, at 10.7, there are a few fonts packaged with Enterprise in .pbf:
C:\Program Files\ArcGIS\Portal\apps\fonts
Alternatively, with 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.
Thanks for help Noah.
I took the few fonts packaged with Enterprise 10.7 and hosted in my server and pointed the https://static.arcgis.com/fonts to https://myserver.com/fonts .
It worked for me. Hope this helps for people who working in offline environment.
hello friends I have a similar problem. but I can't find above location . how can I download this fonts?
thank
how did you point from https://static.arcgis.com/fonts to https://myserver.com/fonts .
import esriConfig from "@arcgis/core/config.js";
esriConfig.fontsUrl = "/fonts";
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. In our case, hosting it as a static file under the fonts folder. We're having challenges with that file once deployed to IIS, but that's another story.