Ask Your Question
2

After transitioning from Angular 7 to 8, why are custom fonts failing to load?

asked 2021-07-08 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-02-23 18:00:00 +0000

pufferfish gravatar image

There could be a few reasons why custom fonts could fail to load after transitioning from Angular 7 to 8:

  1. You may have moved the fonts directory and not updated the font path in your CSS. Make sure the path to the font files is correct.

  2. Angular 8 may have added a new feature to disable loading of cross-origin fonts, which could cause issues with loading custom fonts. You can try adding a "crossorigin" attribute to your font link or investigate changes to your Angular configuration.

  3. Make sure the Font file types are supported in Angular 8. Some font file types may have been added or removed from Angular 7 to 8.

  4. Clear the browser cache as it could be an issue with the cache file.

Double check these areas to ensure that the custom fonts are being loaded correctly.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-07-08 11:00:00 +0000

Seen: 20 times

Last updated: Feb 23 '22