Closed
Bug 1167281
Opened 10 years ago
Closed 10 years ago
find a font with language support even when the preferred font is not scalable
Categories
(Core :: Graphics: Text, defect)
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: karlt, Assigned: jtd)
References
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file)
1.06 KB,
patch
|
karlt
:
review+
|
Details | Diff | Splinter Review |
gfxFcPlatformFontList::FindGenericFamily() aims to find a family supporting
the requested language. It does this by using FcFontSort(), which, in normal
fontconfig configurations, will provide a list where the first font supports
the language. Subsequent fonts however are not sorted by language (as the
language support has been provided by the first font).
If the first font is not scalable, then FindGenericFamily() skips the first
font, but then the next font has not been sorted to support the language.
FcFontSort() can find a scalable font that supports the language, even in the
presence on non-scalable fonts, if the sort pattern has FC_SCALABLE set, as
indicated in https://bugzilla.mozilla.org/show_bug.cgi?id=1056479#c42
Updated•10 years ago
|
Whiteboard: [gfx-noted]
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8610990 -
Flags: review?(karlt)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jdaggett
Assignee | ||
Updated•10 years ago
|
OS: Unspecified → Linux
Reporter | ||
Comment 2•10 years ago
|
||
Comment on attachment 8610990 [details] [diff] [review]
patch, restrict font lookups to scalable fonts
>Bug 1167281 - restrict generics to scalable fonts under Linux. r?karlt
>+ // -- ignore size-specific fonts
Please make this "prefer scalable fonts" or "de-prioritize size-specific fonts" or similar, as they are not ignored. It is just the sorted order that changes.
Also adjust the commit message, as generics are already restricted to scalable fonts; it is the choice of scalable font that is affected by this change.
Something like "sort scalable fonts first when resolving generic families".
Attachment #8610990 -
Flags: review?(karlt) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•