wporg-mu-plugins icon indicating copy to clipboard operation
wporg-mu-plugins copied to clipboard

feat(global-fonts): restructure directory and add Noto CJK variable fonts

Open Jiwoon-Kim opened this issue 11 months ago โ€ข 0 comments

Props @ryelle for the original font enqueue implementation

Summary

  • Refactored the global-fonts directory structure for better clarity and scalability.
  • Created a new NotoCJK directory with Sans/ and Serif/ subdirectories.
  • Removed ambiguous noto and notoserif directories and consolidated them under NotoCJK.
  • Added NotoSans and NotoSerif CJK VariableFont_wght.woff2 files for HK, JP, KR, SC, and TC regions.

Details

  • Existing files in the old NotoSerif directory remain intact.
  • Recompressed existing fonts to .woff2; file sizes slightly reduced for unknown reasons, but verified to be functional.
  • this PR only includes the font files and directory restructuring.

Changes

  • Added: mu-plugins/global-fonts/NotoCJK/Sans/
  • Added: mu-plugins/global-fonts/NotoCJK/Serif/
  • Added: NotoSans* and NotoSerif* CJK VariableFont files (.woff2) for HK, JP, KR, SC, and TC.

Notes

  • No functionality changes in themes yet.
  • Path updates in theme enqueue functions will be handled separately.

๐Ÿ’ก Korean summary (์„ค๋ช…์šฉ)

  • ๊ธ€๋กœ๋ฒŒ ํฐํŠธ ๋””๋ ‰ํ† ๋ฆฌ์˜ noto, notoserif๋ฅผ ์ •๋ฆฌํ•˜๊ณ  NotoCJK ๋””๋ ‰ํ† ๋ฆฌ๋กœ ํ†ตํ•ฉ
  • NotoCJK/Sans, NotoCJK/Serif๋กœ ๋””๋ ‰ํ† ๋ฆฌ ๊ตฌ์กฐ ๋ฆฌํŒฉํ† ๋ง
  • HK, JP, KR, SC, TC์šฉ NotoSans, NotoSerif CJK VariableFont .woff2 ์ถ”๊ฐ€
  • ๊ธฐ์กด NotoSerif ํฐํŠธ๋Š” ์œ ์ง€, ์••์ถ•ํ•ด์„œ ์•ฝ๊ฐ„ ์šฉ๋Ÿ‰ ๊ฐ์†Œ ํ™•์ธ
  • ํ…Œ๋งˆ ๊ฒฝ๋กœ๋Š” ์•„์ง ์ˆ˜์ •ํ•˜์ง€ ์•Š์Œ. ํŒŒ์ผ๋งŒ ์ •๋ฆฌ ์™„๋ฃŒ

https://github.com/google/woff2 sudo apt update sudo apt install make g++ git cd /mnt/c/Users/thaum/dev

git clone --recursive https://github.com/google/woff2.git cd woff2 make clean all

./woff2_compress /mnt/c/Users/thaum/dev/noto/NotoSerifKR-VariableFont_wght.ttf ./woff2_compress /mnt/c/Users/thaum/dev/noto/NotoSansKR-VariableFont_wght.ttf

./woff2_compress /mnt/c/Users/thaum/dev/noto/NotoSerifJP-VariableFont_wght.ttf https://fonts.google.com/noto/specimen/Noto+Sans+JP ./woff2_compress /mnt/c/Users/thaum/dev/noto/NotoSansJP-VariableFont_wght.ttf

./woff2_compress /mnt/c/Users/thaum/dev/noto/NotoSerifSC-VariableFont_wght.ttf ./woff2_compress /mnt/c/Users/thaum/dev/noto/NotoSansSC-VariableFont_wght.ttf

./woff2_compress /mnt/c/Users/thaum/dev/noto/NotoSerifTC-VariableFont_wght.ttf https://fonts.google.com/noto/specimen/Noto+Sans+TC ./woff2_compress /mnt/c/Users/thaum/dev/noto/NotoSansTC-VariableFont_wght.ttf

./woff2_compress /mnt/c/Users/thaum/dev/noto/NotoSerifHK-VariableFont_wght.ttf ./woff2_compress /mnt/c/Users/thaum/dev/noto/NotoSansHK-VariableFont_wght.ttf

https://github.com/WordPress/wporg-mu-plugins/pull/686 https://github.com/WordPress/wporg-mu-plugins/pull/685 https://github.com/WordPress/wporg-mu-plugins/pull/684 https://github.com/WordPress/wporg-mu-plugins/pull/630 https://github.com/WordPress/wporg-parent-2021/issues/175

Jiwoon-Kim avatar May 14 '25 13:05 Jiwoon-Kim