-
Hello! I cannot get the fonts to work. :( I have followed the instructions here to set up custom fonts: https://breezefront.com/docs/custom-fonts#adding-local-font-using-font-face-rule I am using a local font, CormorantInfant, that I downloaded from Google fonts. I have added the following code to
I realise that I am only preloading one font file but it should work for testing right? I have added the following code to
I have added the following code to
Any help would be very much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
OK I got it to work by making these changes: In
In
In And last but not least, the selinux context was wrong on my font files so I ran |
Beta Was this translation helpful? Give feedback.
OK I got it to work by making these changes:
In
app/design/frontend/Local/breeze-custom/Magento_Theme/layout/breeze_default.xml
:In
app/design/frontend/Local/breeze-custom/web/css/_extend.less
:In
app/design/frontend/Local/breeze-custom/web/css/_fonts.less
I changed each instance offormat('ttf')
toformat('truetype')
.And last but not least, the selinux context was wrong on my font files so I ran
sudo semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/pub/static(/.*)?'
andsudo restorecon -Rv '/var/www/html/'