Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safari下的仿宋体、楷体和隶书的显示问题 #9

Open
xfq opened this issue Sep 1, 2023 · 2 comments
Open

Safari下的仿宋体、楷体和隶书的显示问题 #9

xfq opened this issue Sep 1, 2023 · 2 comments
Labels
font-selection 用于跟踪有关字体选择的问题,包括字体排列方案、字形、符号和跨平台支持等 help wanted Extra attention is needed

Comments

@xfq
Copy link
Contributor

xfq commented Sep 1, 2023

Describe the bug

在Safari下,仿宋体和楷体均显示为黑体,隶书部分显示为宋体,部分显示为黑体:

fangsong-kai li

Reproduction

https://github.com/kirklin/unocss-preset-chinese/tree/master/examples

System Info

System:
    OS: macOS 12.6.8
  Binaries:
    Node: 18.15.0 - ~/.asdf/installs/nodejs/18.15.0/bin/node
    npm: 9.5.0 - ~/.asdf/plugins/nodejs/shims/npm
  Browsers:
    Chrome: 116.0.5845.140
    Chrome Canary: 118.0.5982.0
    Firefox: 116.0.3
    Firefox Developer Edition: 117.0
    Safari: 16.6
    Safari Technology Preview: 16.4


### Validations

- [X] Follow our [Code of Conduct](https://github.com/kirklin/.github/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guide](https://github.com/kirklin/contribute).
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
@kirklin
Copy link
Owner

kirklin commented Sep 1, 2023

隶书在macos下好像并没有很好的字体。我之前找了很久都没有找到。只能用一些类似的字体去替代。

@xfq
Copy link
Contributor Author

xfq commented Sep 1, 2023

隶书在macos下好像并没有很好的字体。我之前找了很久都没有找到。只能用一些类似的字体去替代。

可以考虑回退到其他字体(比如楷体)或用@font-face加载WOFF字体来实现(中文字体加载较慢,将来可以考虑使用增量字体传输加快字体加载速度)。

@kirklin kirklin added font-selection 用于跟踪有关字体选择的问题,包括字体排列方案、字形、符号和跨平台支持等 help wanted Extra attention is needed labels Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
font-selection 用于跟踪有关字体选择的问题,包括字体排列方案、字形、符号和跨平台支持等 help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants