chipzoller / hugo-clarity

A theme for Hugo based on VMware Clarity
Other
583 stars 268 forks source link

How should I practically change the font to use system default font? (because bold doesn't take effect) #150

Closed virtual-serenity closed 3 years ago

virtual-serenity commented 3 years ago

(For Chinese text, the bold doesn't work and it stills shows plain unbolded text)

I found that only customFonts = true is related and I don't know how to proceed to change the font.

The markdown source:

001

The rendered effect:

002

onweru commented 3 years ago

@mc-gulu, thanks for raising this. I will apply a remedy asap

rootwork commented 3 years ago

I think it's just because the fonts being loaded don't include a true "bold" version.

virtual-serenity commented 3 years ago

I think it's just because the fonts being loaded don't include a true "bold" version.

Alright.

I changed the font-face to 'Microsoft Yahei' (which does contain the bold effect) but nothing changed and it still doesn't show bold correctly.

image_001

I removed the content of the _font.sass entirely to try to "clear the font customization" but nothing changes.

I'm not quite familiar with css. May I ask that how should I practically change the font used (like originally asked in the issue title) please?

virtual-serenity commented 3 years ago

I also tried to change font in _variables.sass and main.sass but it doesn't work either.

onweru commented 3 years ago

@mc-gulu, please let me know if the change worked.

virtual-serenity commented 3 years ago

It works!

665C36E9-FDEF-478C-8CE1-FEF979425B9B

1nformation commented 2 years ago

怎么更改默认字体,大佬。