CaiJimmy / hugo-theme-stack

Card-style Hugo theme designed for bloggers
https://stack.jimmycai.com
GNU General Public License v3.0
5.06k stars 1.66k forks source link

Improve Font Rendering for Japanese Language #825

Closed f-matano44 closed 4 months ago

f-matano44 commented 1 year ago

This pull request aims to improve the display of Japanese text on the website.

Changes made:

  1. Introduced a new CSS variable, --ja-font-family, to specify a priority list of fonts for Japanese text.
  2. Adjusted the --base-font-family variable for Japanese language context to prioritize --ja-font-family.

The new font family list prioritizes commonly available and high-quality fonts for Japanese text, such as "Hiragino Kaku Gothic ProN", "Meiryo", and "Noto Sans CJK JP". These changes will help to ensure that our Japanese text is displayed accurately and beautifully across various operating systems and browsers.

Please review the changes and let me know if any adjustments are needed.