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

In GDI, Hanguls in font with a stub cmap4 are missing. #157

Closed
CyanoHao opened this issue May 4, 2020 · 2 comments
Closed

In GDI, Hanguls in font with a stub cmap4 are missing. #157

CyanoHao opened this issue May 4, 2020 · 2 comments

Comments

@CyanoHao
Copy link
Contributor

CyanoHao commented May 4, 2020

It occurs in TTC, Mono/Term/Fixed Slab SC/TC/HC, any subfamily.

sarasa-regular.ttc v0.12.5, Windows 10.0.19041, Korean:
image

@CyanoHao
Copy link
Contributor Author

CyanoHao commented May 4, 2020

Some test results:

otfccdump sarasa-gothic-cl-regular.ttf | otfccbuild --stub-cmap4 -O3 -o sarasa-nocmap4.ttf → Hanguls are missing. (sarasa-gothic-cl-regular.ttf is extracted from sarasa-gothic-ttf-0.12.5.7z.)

otfccdump SourceHanSansK-Regular.otf | otfccbuild --stub-cmap4 -O3 -o shs-nocmap4.otf → Good. (v2.001)

otfccdump SourceHanSansK-Regular.otf | otfcc-c2q | otfccbuild --stub-cmap4 -O3 -o shs-nocmap4.ttf → Good. (v2.001)

otfccdump shs-nocmap4.ttf --pretty -o shs.json, and then edit OS/2.ulCodePageRange1:

"ulCodePageRange1": {
    "latin1": true,
    "latin2": true,
    "cyrillic": true,
    "vietnamese": true,
    "jis": false,
    "gbk": false,
    "korean": true,
    "koreanJohab": false,
    "macRoman": true,
    "oem": true
},

and build with otfccbuild shs.json --stub-cmap4 -O3 -o cp949.ttf. → The icon is broken. (The font looks good in Windows Font Viewer.)
image

@be5invis
Copy link
Owner

be5invis commented May 5, 2020

Fixed in Dev by upgrading the dependency.

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