Closed skadomsky closed 9 months ago
I have tried cleaning cookies & opening the page in private mode. It didn't work neither.
The problem has solved. My previous network environment makes my browser difficult to fetch the font file and load. But it's still hard to explain why the meslo font was displayed instead in my past trials.
I have configured new font
NotoSerifTC-Regular.otf
instead of using the defaultMesloLGS-Regular.ttf
, and I placed fonts folder "Noto_Serif_TC" , in which the .otf file lies in, under/themes/cactus/source/lib
. Then I changed_fonts.styl
and_variables.styl
(both are under/themes/cactus/source/css
) as below:The
/public/css/style.css
generated:It actually works well when I serve it to
localhost:4000
and font displayed nicely. But after I deployed to remote, the site cannot display the font and back to the originMeslo
font instead. The whole font folder was included in git (/public/lib/Noto_Serif_TC
) so there isn't any font file missing. My repository is at: https://github.com/skadomsky/skadomsky.github.io/ so my github pages address is https://skadomsky.github.io/. Is there any suggested error in my progress? Thanks for answering!PS Sorry for my ignorance in front-end. I have never written front-end programs before, and for this problem I took a look in CSS in a short term. I apologize for my noob wrong if it exists.