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

CSS 格式错误 #18

Open
CNChestnut opened this issue May 2, 2024 · 2 comments
Open

CSS 格式错误 #18

CNChestnut opened this issue May 2, 2024 · 2 comments

Comments

@CNChestnut
Copy link

CNChestnut commented May 2, 2024

这是我的 CSS 文件。

@font-face {
 font-family: "ZZZ-B";
 src: url(".\ZZZNeue-VariantB-0.003.otf") format("otf");
}

当我加上 format 时,字体无法正常加载。
但是我去掉 format 或者改成 format('woff') 或者 format('woff2') 就可以正常加载。
这是为什么。

目前我已经发现很多的 OTF 字体文件都存在这个问题,因为不显示导致我以为是其他地方出了问题,排查了好久发现是这个问题。

看了 MDN 我应该没搞错什么。


还有一个建议,Xianzhou Seal 建议做成等宽字体。

@SpeedyOrc-C
Copy link
Owner

其实大写和小写分开来看都是等宽的,因为游戏里并不允许大小写混写的情况(

@CNChestnut
Copy link
Author

CSS 使用时的格式问题作者有后续说明吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants