Fontconfig scores the number of glyphs too highly
I am a font developer. I have a font called TT2020, I am making an italic for it.
TT2020 supports many character sets; beyond Latin it supports Cyrillic, Greek, Armenian, Hebrew (with nekudot), some IPA glyphs, and so on. It is likely that the Italic will only cover Cyrillic and, at maximum, perhaps basic Hebrew if I find the time.
I finished basic Latin for the Italic and ran into a problem: fontconfig will never choose the Italic as it scores the number of glyphs too highly, meaning even when queried as fc-match -s TT2020Base:style=Italic
, "TT2020Base" "Regular"
finds itself on top.
Correct output:
Incorrect output:
I have attached a ZIP file containing the files TT2020Base-Regular.ttf
, TT2020Base-Italic.ttf
and TT2020Base-RegularF.ttf
. ‹F› here stands for Full; when it is installed, no application will ever use the Italic, but when the pared down version is installed, the Italic works fine.
Please advise.for_the_fontconfig_developers.zip