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

无法识别到可变字体中的字体名称 #25

Open
spr-equinox opened this issue Jan 3, 2025 · 0 comments
Open

无法识别到可变字体中的字体名称 #25

spr-equinox opened this issue Jan 3, 2025 · 0 comments

Comments

@spr-equinox
Copy link

fonts.json 内容如下

    {
        "families": [
            "sitka text"
        ],
        "fullnames": [
            "sitka text"
        ],
        "psnames": [
            "sitkatext"
        ],
        "weight": 400,
        "slant": 0,
        "path": "R:\\*****\\SitkaVF.ttc",
        "index": 0,
        "last_write_time": "UTC 2022-05-07 05:19:24"
    },

而打开ttc文件就可以看见它包含Sitka接上Small, Small Semibold, Small Bold, Text, Text Semibold, Text Bold, Subheading, Subheading Semibold, Subheading Bold, Heading, Heading Semibold, Heading Bold, Display, Display Semibold, Display Bold, Banner, Banner Semibold, Banner Bold.后缀的名称

强制在json添加名称,会导致sitka small被替换成AHIDBGCB,正确的名称应该是AHIDBGCB small

@spr-equinox spr-equinox changed the title 无法识别到 SitkaVF.ttc 中的字体名称 无法识别到可变字体中的字体名称 Jan 3, 2025
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

1 participant