privacybydesign / irma-frontend-packages

Collection of frontend related packages, that together form a Javascript "client" to the IRMA server.
7 stars 4 forks source link

Font doesn't load when using irma-frontend #24

Closed Timendus closed 4 years ago

Timendus commented 4 years ago

For some reason the Javascript tries to request the font files from the domain of the hosting webpage, not the domain where the Javascripts came from (and where the fonts live).

Screenshot 2020-01-20 at 11 55 53

This results in all the text being rendered in Tahoma or Arial, which is not as pretty.

Quick fix: instruct users of irma-frontend to host the font files. Not sure what needs to be done for a "real" fix.

ivard commented 4 years ago

The fonts are now included in the bundle. This enlarges the bundle size significanty, but it is a solution. I also switched to a compressed font type to compensate for this again.