Closed PeterN closed 1 month ago
On Linux, it is not possible to select a system font with a hyphen in the name.
This is because FcNameParse() requires some characters be escaped. One such is a hyphen.
FcNameParse()
Instead of trying to escape the string, pass the name directly as FC_FAMILY with FcPatternAddString() instead.
FC_FAMILY
FcPatternAddString()
Some things are not automated, and forgotten often. This list is a reminder for the reviewers.
Motivation / Problem
On Linux, it is not possible to select a system font with a hyphen in the name.
This is because
FcNameParse()
requires some characters be escaped. One such is a hyphen.Description
Instead of trying to escape the string, pass the name directly as
FC_FAMILY
withFcPatternAddString()
instead.Limitations
Checklist for review
Some things are not automated, and forgotten often. This list is a reminder for the reviewers.