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
to - src: local('Oswald Regular'), local('Oswald-Regular'), url(../../fonts/Oswald-Medium.ttf) format('truetype');
Run: npm run setup npm start
Now it compiles with no errors,
Checking the network tab when loading a component page in PL, the font file was not loaded :(
It tries loading it from the wrong location - http://0.0.0.0:8080/app-node-pl/pl/patterns/02-molecules-card-demo-cards/app-node-pl/assets/fonts/Oswald-Medium.ttf
What's the way to solve this?
The text was updated successfully, but these errors were encountered:
I'm having the same problem with local fonts. When I run 'npm run build:pl' or 'npm run build:drupal' the paths are correct, but 'npm run dev:pl' or 'npm start' results in the PatternLab server looking for the fonts in locations exactly like the one that @shaal notes at the end of his post. The paths seems to be a combination of where the font is being called from and then where it really lives.
Issue
Cannot enable local fonts, using
master
branch, v10.4.2Steps to reproduce
Comment out -
particle/source/default/tokens/sass/printing/_type.scss
Line 18 in 99067bb
Uncomment -
particle/source/default/tokens/sass/printing/_type.scss
Lines 26 to 32 in 99067bb
Change this line -
particle/source/default/tokens/sass/non-printing/_bootstrap-overrides.scss
Line 91 in 99067bb
to -
$font-family-base: $font-family-serif;
Run:
npm run setup
npm start
Error:
Not sure if this is part of the solution,
Change this line -
particle/source/default/tokens/sass/printing/_type.scss
Line 30 in 99067bb
to -
src: local('Oswald Regular'), local('Oswald-Regular'), url(../../fonts/Oswald-Medium.ttf) format('truetype');
Run:
npm run setup
npm start
Now it compiles with no errors,
Checking the network tab when loading a component page in PL, the font file was not loaded :(
It tries loading it from the wrong location -
http://0.0.0.0:8080/app-node-pl/pl/patterns/02-molecules-card-demo-cards/app-node-pl/assets/fonts/Oswald-Medium.ttf
What's the way to solve this?
The text was updated successfully, but these errors were encountered: