Closed
Bug 1224965
Opened 9 years ago
Closed 9 years ago
add pref for limit on generic substitutions in fontconfig platform fontlist
Categories
(Core :: Graphics: Text, defect)
Tracking
()
RESOLVED
FIXED
mozilla45
People
(Reporter: jtd, Assigned: jtd)
References
Details
Attachments
(2 files)
9.83 KB,
patch
|
m_kato
:
review+
ritu
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
3.97 KB,
patch
|
karlt
:
review+
ritu
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•9 years ago
|
||
The patches on bug 1173260 enable multiple fonts to be mapped to generics via fontconfig under Linux. To limit the time spent checking fonts during font matching, I put in an arbitrary limit of three but this should probably be in a pref so that users and/or distros that are doing something more complicated and account for longer substitution lists.
Comment 2•9 years ago
|
||
I expect the only time that there would be many families before the first with support for the language (bug 1056479 comment 42) would be when there are no families that support the language.
Assignee | ||
Comment 3•9 years ago
|
||
Convert a constant limit into a pref value.
Attachment #8688274 -
Flags: review?(m_kato)
Assignee | ||
Comment 4•9 years ago
|
||
Tweak the logic for looking up generic fonts under fontconfig. Add fonts into the array until the pattern has the lang, up until the pref-defined limit (default = 3). If no pattern has the lang, only use the first font (e.g. for obscure languages that don't match).
Attachment #8688278 -
Flags: review?(karlt)
Comment 5•9 years ago
|
||
Comment on attachment 8688274 [details] [diff] [review]
patch p1, add pref for max generic substitutions
Review of attachment 8688274 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/thebes/gfxPlatformGtk.cpp
@@ +375,5 @@
> + } else {
> + gfxPlatform::FontsPrefsChanged(aPref);
> + return;
> + }
> +
I think that the following is better.
if (strcmp(GFX_PREF_MAX_GENERIC_SUBSTITUTIONS, aPref)) {
gfxPlatform::FontsPrefsChanged(aPref);
return;
}
mMaxGenericSubstitutions = UNINITIALIZED_VALUE;
Attachment #8688274 -
Flags: review?(m_kato) → review+
Comment hidden (typo) |
Comment 8•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/17ad6b5b7eb8
https://hg.mozilla.org/mozilla-central/rev/b058350c9753
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Assignee | ||
Comment 9•9 years ago
|
||
Comment on attachment 8688274 [details] [diff] [review]
patch p1, add pref for max generic substitutions
Approval Request Comment
[Feature/regressing bug #]: This is one of the bugs that need to be fixed to enable the new fontconfig back end for beta/release builds. Enabling the new fontconfig back end will allow us to release unicode-range support across all platforms (bugs 1180560, 1119062).
[User impact if declined]: unicode-range support can't be enabled until FF45
[Describe test coverage new/current, TreeHerder]: landed on trunk last week, no issues reported
[Risks and why]: low risk, only affects users with special configurations
[String/UUID change made/needed]: none
Attachment #8688274 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 10•9 years ago
|
||
Comment on attachment 8688278 [details] [diff] [review]
patch p2, modify logic of generic font lookups
Approval Request Comment
-- same as above --
Attachment #8688278 -
Flags: approval-mozilla-aurora?
status-firefox44:
--- → affected
Comment on attachment 8688274 [details] [diff] [review]
patch p1, add pref for max generic substitutions
Having a pref to limit number of matches we find is a good idea, Aurora44+
Attachment #8688274 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment on attachment 8688278 [details] [diff] [review]
patch p2, modify logic of generic font lookups
Aurora44+
Attachment #8688278 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 13•9 years ago
|
||
Pushed to aurora:
https://hg.mozilla.org/releases/mozilla-aurora/rev/f4892b39b731
Assignee | ||
Comment 14•9 years ago
|
||
Comment 15•9 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-b2g44_v2_5/rev/f4892b39b731
https://hg.mozilla.org/releases/mozilla-b2g44_v2_5/rev/5ac27957690f
status-b2g-v2.5:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•