Open Bug 1552941 Opened 6 years ago Updated 2 years ago

More complete fontconfig integration in the shared font-list implementation

Categories

(Core :: Layout: Text and Fonts, enhancement, P3)

Unspecified
Linux
enhancement

Tracking

()

People

(Reporter: jfkthame, Unassigned)

References

Details

Attachments

(1 file)

The initial implementation of the cross-process shared font list in bug 1514869 does not fully support fontconfig features. In particular, font-family names are simply looked up in the list of installed font families, rather than resolved through fontconfig APIs.

This means that font substitutions and aliases configured through fonts.conf will not be respected; the CSS font-family value will just be matched against the actual installed fonts, without regard to aliases etc that may have been set up by the distro or user.

We should fix this, particularly because it's fairly common to have fontconfig rules that provide free-software aliases for well-known proprietary Windows and macOS fonts. If these aliases are not handled, users will get a degraded font-selection experience.

Blocks: 1648085

I am running into this issue particularly because Syriac has three different script styles and there are Syriac fonts for each of those (https://bethmardutho.org/meltho/) styles.

I have created a github repository that helps install the fonts and a fontconfig file for each style (https://github.com/esoleyman/Syriac-Linux/). What I have noticed that if I have all of the Meltho fonts installed, then only the Estrangelo Edessa is picked up despite the fontconfig stating 'East Syriac Adiabene'.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: