Gecko has internal support for a number of legacy Mac encodings that
are not part of the Encoding Standard and that are *only* used for
decoding the names of legacy TrueType fonts.

As part of rewriting our Web-facing decoder/encoder infrastructure per
spec, some explicit action to deal with the font name code is needed
(drop support for non-Encoding Standard font names or support them in
a new non-Encoding Standard way).

Have I understood correctly that the TrueType font name is not exposed
by the Web Platform, is not used for identification by any Web Font
mechanism and is, therefore, only relevant to identifying system
fonts?

Telemetry shows that the usage of these encodings isn't the same
percentage across platforms, which suggests that fonts indeed aren't
coming from the Web but are coming from the system font directory.

Almost all OS X systems that run release-channel Firefox have a font
with a MacHebrew name installed. MacHebrew is non-zero but tiny on
Windows.

MacArabic, MacCE, MacGreek and MacGujarati are almost exclusively seen
on Windows! MacTurkish is more common on Windows than Mac.

MacRomanian and MacGurmukhi are non-zero but tiny.

MacIcelandic, MacDevanagari, MacFarsi and MacCroatian are at zero.

MacRoman and MacCyrillic are part of the Encoding Standard and will
continue to be supported in the form specified in the Encoding
Standard.

Legacy Mac encodings for CJK weren't Mac-specific and will continue to
be supported in the form specified in the Encoding Standard.

We don't support the rest of the legacy Mac encodings.

Since TrueType fonts can have multiple name records, it's possible
that the fonts that have legacy Mac name records also have Unicode or
Windows name records, in which case us dropping support for
(non-Roman, non-Cyrillic, non-CJK) legacy Mac font names wouldn't
break stuff.

How do we find out if we can remove support for (non-Roman,
non-Cyrillic, non-CJK) legacy Mac font names?

-- 
Henri Sivonen
hsivo...@hsivonen.fi
https://hsivonen.fi/
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to