Arcgis fonts issue

2227
5
Jump to solution
03-10-2020 08:10 AM
KafilBaig
New Contributor III

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 .

0 Kudos
1 Solution

Accepted Solutions
Noah-Sager
Esri Regular Contributor

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.

View solution in original post

0 Kudos
5 Replies
Noah-Sager
Esri Regular Contributor

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.

0 Kudos
KafilBaig
New Contributor III

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.

mahdicmptr
New Contributor

hello friends I have a similar problem. but I can't find above location . how can I download this fonts?

thank

0 Kudos
davidbeales
New Contributor
0 Kudos
Brice
by
New Contributor II
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.

0 Kudos