https://bugzilla.redhat.com/show_bug.cgi?id=1823984



--- Comment #10 from Nikolaus Waxweiler <[email protected]> ---
I don't understand your metadata criticism. The "Cantarell Extra Bold Regular"
thing is a concatenation of name id 1 and 2 and the spec recommends that you
pretend to be a RIBBI font in them. It makes stuff work in old crusty
applications such as modern Word.

> https://docs.microsoft.com/en-us/typography/opentype/spec/name#name-ids (IDs 
> 1 and 2)
> [...]
> While some platforms or applications do not have this constraint, many 
> existing applications that use this pair of names assume that a Font Family 
> name is shared by at most four fonts that form a font style-linking group: 
> regular, italic (or oblique), bold, and bold italic (or bold oblique). To be 
> compatible with the broadest range of platforms and applications, it is 
> strongly recommended that fonts limit use of Font Family name in this manner.
> [...]

This is established practice and what ufo2ft, the "major player" next to
Adobe's makeotf, does and what the spec recommends. You start from the true
family and style name and if the style is within RIBBI, you use id 1 and 2, if
not, you write the true values to 16 and 17 and emulate RIBBI-ness in 1 and 2.
The style names for variable font instances are taken from the fvar and/or STAT
table. fontconfig seems to only use the full name from the name table without
taking variation data into consideration.

The correct way to determine family and style for a static font is

family_name = id16 or id1
style_name = id17 or id2

In pythonesque pseudo-code and ignoring the WWS stuff that I have never seen in
practice. Fontconfig seems to do the wrong thing here by including the
"Regular" when id17 says something else.


-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
fonts-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to