adambard / learnxinyminutes-site

44 stars 61 forks source link

Change fallback font in code section to sans-serif #111

Closed asd142513 closed 7 months ago

asd142513 commented 11 months ago

If there is no monospace glyph available for CJK letters, they will be rendered using a fallback font. Given that most monospace fonts used in programming are sans-serif (just my opinion 😉), it is preferable to use a sans-serif fallback font for consistency and readability.

Fonts Monospace: Hack Serif: Noto Serif KR Sans-serif: Noto Sans KR

Before: image

After: image