Hi Isomorphic,
I just noticed that the framework does preload fonts listed in load_skin.js like this:
But it seems that it does not load all font-weights defined in skin_styles.css. This is my definition:
On load, it fetches only the -400 file, the -900 is loaded when the font is needed the first time. Is there some way to have all font-weights loaded at start?
This is minor for me, as it is working nevertheless.
Best regards
Blama
I just noticed that the framework does preload fonts listed in load_skin.js like this:
Code:
// if CSS is loaded or being loaded, call FontLoader with same @font-face fonts from CSS if (cssLoaded != null) isc.FontLoader.loadCustomFonts([ "Dosis", "FontAwesome" // Changed ], cssLoaded);
Code:
@font-face { font-family: "FontAwesome"; [B]font-weight: normal;[/B] font-style : normal; src : url("font/fa-regular-400.eot?v=5.0.4"); src : url("font/fa-regular-400.eot?#iefix&v=5.0.4") format("embedded-opentype"), url("font/fa-regular-400.woff?v=5.0.4") format("woff"), url("font/fa-regular-400.ttf?v=5.0.4") format("truetype"), url("font/fa-regular-400.svg?v=5.0.4#fontawesomeregular") format("svg"); } @font-face { font-family: "FontAwesome"; [B]font-weight: bold;[/B] font-style : normal; src : url("font/fa-solid-900.eot?v=5.0.4"); src : url("font/fa-solid-900.eot?#iefix&v=5.0.4") format("embedded-opentype"), url("font/fa-solid-900.woff?v=5.0.4") format("woff"), url("font/fa-solid-900.ttf?v=5.0.4") format("truetype"), url("font/fa-solid-900.svg?v=5.0.4#fontawesomeregular") format("svg"); }
This is minor for me, as it is working nevertheless.
Best regards
Blama
Comment