subframe7536 / maple-font

[try V7!] Maple Mono: Open source monospace font with round corner, ligatures and Nerd-Font for IDE and command line. 带连字和控制台图标的圆角等宽字体,中英文宽度完美2:1
SIL Open Font License 1.1
4.21k stars 64 forks source link

V7 beta 9 - not all italic weights are detected. #170

Closed jastko closed 4 months ago

jastko commented 4 months ago

Under Linux, all static otf/ttf italic weights( except Regular Italic), aren't properly detected by some KDE applications, such as Konsole - KDE terminal emulator, or Kate - KDE text editor.

https://github.com/subframe7536/maple-font/assets/134521733/66e1437e-9332-4e4e-a711-fceb2228077e

I think, that fsSelection and macStyle have wrong settings. For example, from ttx decompilation of BoldItalic style: fsSelection is set to:

        .....
    <achVendID value="SUBF"/>
    <fsSelection value="00000000 10100000"/>
    <usFirstCharIndex value="0"/>
        .....

and according to the https://learn.microsoft.com/en-us/typography/opentype/spec/os2#fsselection, it should be:

<fsSelection value="00000000 10100001"/>

macStyle has a value of:

        .....
    <yMax value="1120"/>
    <macStyle value="00000000 00000001"/>
    <lowestRecPPEM value="6"/>
        .....

and should have: <macStyle value="00000000 00000011"/>

After the change, everything works.

By the way, nice font, great work.

subframe7536 commented 4 months ago

Thanks for your detailed suggestion! This issue will be fixed in v7-beta10

subframe7536 commented 4 months ago

This is caused by the generation of static fonts. But the NerdFont-patched version re-fix it.

subframe7536 commented 4 months ago

release in v7-beta10

jastko commented 4 months ago

fixed, thanks