- From: 一丝 via GitHub <sysbot+gh@w3.org>
- Date: Wed, 09 Oct 2024 17:06:35 +0000
- To: public-css-archive@w3.org
> but some emoji fonts have coloured glyphs for ASCII digits, so I assume there might be some use cases when authors might want to use emoji digits, don't you think so? Usually, we have the following ways to solve it: 1. Use `@font-face`(Suppose the font `Nabla-Regular` is available locally). But more often than not we use `webfont`, which ensures consistent styling across all OS. There are many such icon libraries on iconfont: https://www.iconfont.cn/collections/detail?spm=a313x.collections_index.i1.d9df05512.4aaa3a81DONmCk&cid=7450 https://www.iconfont.cn/collections/detail?spm=a313x.collections_index.i1.d9df05512.4aaa3a81DONmCk&cid=21232 ```css @font-face { font-family: "color_digits"; src: local("Nabla-Regular"); unicode-range: U+30-39; } .test { font-family: "color_digits"; font-size: 36px; } ``` 2. Use VS15 or VS16 (e.g. `U+0039 + U+FE0E` or `U+0039 + U+FE0F`) Overall, I think the usage you're talking about is almost non-existent in actual websites. There seems to be no reason not to use webfont. > you won't be able to use coloured emoji digits at all since you would not be able to even apply VS16 to change the presentation to emoji, isn't that right? Sorry, I don't understand what that means. -- GitHub Notification of comment by yisibl Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11014#issuecomment-2402859557 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 9 October 2024 17:06:37 UTC