- From: jfkthame via GitHub <sysbot+gh@w3.org>
- Date: Mon, 23 Sep 2024 10:41:29 +0000
- To: public-css-archive@w3.org
E.g. if I wanted to use "Heiti SC" for Chinese characters, but "Times New Roman" for Latin letters within the Chinese content, I could try something like ``` @font-face { font-family: heiti-cjk-only; src: local("Heiti SC"); unicode-range: U+3000-9FFF, U+F900-FAFF; /* extend as needed */ } body { font-family: heiti-cjk-only, "Times New Roman", serif; } ``` I've put an example (should work on both Windows and macOS) at https://codepen.io/jfkthame/pen/zYgYBrE?editors=1100, showing the contrast between using the Latin characters that are part of the CJK font vs having them fall back to a chosen Latin font instead. -- GitHub Notification of comment by jfkthame Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10928#issuecomment-2367841945 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 23 September 2024 10:41:30 UTC