Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法检查 otf 字体文件是否包含小型大写字母变体的字形?有没有办法在java中做到这一点?
谢谢!
有,只是不要使用标准库Java。使用 Java OpenType 字体分析器,或者做更明智的事情并咨询 Freetype2 或 Harfbuzz 以获取该信息。
真的,任何可以让您检查 OpenType 功能的东西都可以:检查字体是否为smcp 功能编码- 如果是,它支持根据 OpenType 规范正确的小型大写字母。如果不是,则不会,并且您使用的任何文本引擎都会伪造它。