You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is enough to create vanilla project and to add usage of fonts, for example, you can add dependencies "font-awesome" and "angular-font-awesome", then make the changes to the "app.component.html" by adding <fa name="cog" animation="spin">Sorry, but something went wrong with my fonts</fa>
then execute the following commands
yarn
ng serve
A link to a sample repo
contains all mentioned above changes
Observed behavior
When you run the app and open the console you see the following messages
Failed to decode downloaded font: http://localhost:4200/fontawesome-webfont.68560c510686599ffbc9.woff2?v=4.7.0
localhost/:1 OTS parsing error: Failed to convert WOFF 2.0 font to SFNT
localhost/:1 Failed to decode downloaded font: http://localhost:4200/fontawesome-webfont.a7bbeb589ae63e018872.woff?v=4.7.0
localhost/:1 OTS parsing error: incorrect file size in WOFF header
localhost/:1 Failed to decode downloaded font: http://localhost:4200/fontawesome-webfont.e1dd9adb4f69bb9a0bdc.ttf?v=4.7.0
localhost/:1 OTS parsing error: incorrect entrySelector for table directory
localhost/:1 Failed to decode downloaded font: http://localhost:4200/fontawesome-webfont.912ec66d7572ff821749.svg?v=4.7.0#fontawesomeregular
localhost/:1 OTS parsing error: invalid version tag
And those HTML elements, which use fonts from corrupted files, do not have font symbols
Desired behavior
HTML elements, which use font symbols, should have them
Mention any other details that might be useful (optional)
All works fine if to use angular-cli 1.6.3.
Project was created using the command ng new <projectName> --style=scss
The checking of mentioned before fonts shows that they are really corrupted and have different size than original fonts from the catalog node_modules/font-awesome/fonts/
The text was updated successfully, but these errors were encountered:
nikolayandr
changed the title
After upgrading from 1.6.3 to 1.7.0-rc.0 fonts are corrupted when build is executed
After upgrading from 1.6.3 to 1.7.0-rc.0 fonts are corrupted when project build is executed
Feb 9, 2018
Versions
Repro steps
It is enough to create vanilla project and to add usage of fonts, for example, you can add dependencies "font-awesome" and "angular-font-awesome", then make the changes to the "app.component.html" by adding
<fa name="cog" animation="spin">Sorry, but something went wrong with my fonts</fa>
then execute the following commands
A link to a sample repo
contains all mentioned above changes
Observed behavior
When you run the app and open the console you see the following messages
And those HTML elements, which use fonts from corrupted files, do not have font symbols
Desired behavior
HTML elements, which use font symbols, should have them
Mention any other details that might be useful (optional)
ng new <projectName> --style=scss
The text was updated successfully, but these errors were encountered: