Font loading problem

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
hvk
Posts: 20
Joined: 27 Dec 2017, 18:05

04 Jan 2018, 14:16

If I run default ultima angular-cli project anywhere else than root directory (ie. under some virtual directory), I get three 'Failed to load resource: the server responded with a status of 404 (not found)' for roboto-v15-latin-regular.woff2, MaterialIcons-regular.woff2 and roboto-v15-latin-700.woff2.

I have changed base-href in index.html. Those font files also fail also with any project based on that ultima angular-cli project.

BR,
Harri

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

18 Jan 2018, 10:50

Try building with --base-href option so that CLI will add your path to the resources.

https://github.com/angular/angular-cli/wiki/build

hvk
Posts: 20
Joined: 27 Dec 2017, 18:05

22 Jan 2018, 14:06

Thanks - but for some reason that doesn't work:
I get this 'GET http://server/vdir/assets/layout/fonts/roboto-v15-latin-regular.woff2 net::ERR_ABORTED'
and also for these: "assets/layout/fonts/MaterialIcons-Regular.woff2" and "assets/layout/fonts/roboto-v15-latin-700.woff2"

Those come (developer console) only when using Chrome, not when using IE and IE dev tools console.

Post Reply

Return to “Ultima - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests