question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ArcGIS font's fail to load

See original GitHub issue

I’ve configured my arcgis app to not use the default loaders.

        new ArcGISPlugin({
             useDefaultAssetLoaders: false,
        }),

This is because I’m including some additional libraries like font awesome.

In summary, I’m running into issue with fonts:

Failed to decode downloaded font: <URL> OTS parsing error: invalid version tag

This occurs in production and in webpack-dev server builds.

Same error as mentioned, hopefully we can trouble shoot this here a bit and figure out what the issue is so folks won’t run into this in the future.

The network log shows these fonts being loaded twice, which I find odd:

image

This issue is discussed here…it mentions a potential cause of using multiple loaders for the same file, which might be the cause here since arcgis plugin is using its own loaders under the hood. Not sure though.

https://github.com/webpack-contrib/file-loader/issues/84#issuecomment-240958596

Steps to Reproduce

  1. Download https://github.com/roemhildtg/arcgis-webpack-font-issue
  2. npm install && npm start
  3. Browse to http://localhost:9000
  4. Observe font issues

Context

I was trying to create a webpack app from scratch. The reason being there’s tons of guides out on the web and you really don’t know the best way to do so without doing it by hand once. The esri starter template is nice and is probably packed with tons of features that I don’t even know I need yet, but I can’t understand how to fix issues I encounter without building up an environment from scratch.

Your Environment

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
odoecommented, May 24, 2018

You need this sass variable if using the JSAPI sass

$include_RasterSymbologyEditor: false !default;

It’s pulling in the dgrid css and I don’t know why the resolve-url-loader can’t pick it up.

1reaction
odoecommented, May 23, 2018

This should be fixed in 4.7.11

Could you try that out @roemhildtg?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem: Custom font styles in ArcGIS Server services display ...
This issue is caused by the usage of an unsupported fonts type. ArcGIS Server only supports TrueType and OpenType fonts. For fonts to...
Read more >
20025: Layer uses fonts which are not embeddable and are ...
20025: Layer uses fonts which are not embeddable and are not on the server—ArcGIS Pro | Documentation.
Read more >
20025: Layer uses fonts which are not embeddable and are ...
In order for fonts to be used successfully within a GIS service the font must either reside on the server machine or, if...
Read more >
Common problems and solutions—ArcGIS Server
I attempted to create or join an ArcGIS Server site and something failed. ... How do I install custom fonts for use with...
Read more >
Theme development | ArcGIS Experience Builder
Typography: font family, font sizes, font weights, and line heights; Spacing: ... Open variables.json and add your custom overrides such as:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found