mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 765906 - don't ignore boldness when using system fallback fonts. r=jdaggett
This commit is contained in:
parent
2a1d58cfe5
commit
351cecf2b1
@ -3979,8 +3979,9 @@ gfxFontGroup::WhichSystemFontSupportsChar(PRUint32 aCh, PRInt32 aRunScript)
|
||||
gfxPlatformFontList::PlatformFontList()->
|
||||
SystemFindFontForChar(aCh, aRunScript, &mStyle);
|
||||
if (fe) {
|
||||
// ignore bolder considerations in system fallback case...
|
||||
nsRefPtr<gfxFont> font = fe->FindOrMakeFont(&mStyle, false);
|
||||
bool wantBold = mStyle.ComputeWeight() >= 6;
|
||||
nsRefPtr<gfxFont> font =
|
||||
fe->FindOrMakeFont(&mStyle, wantBold && !fe->IsBold());
|
||||
return font.forget();
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
!= defaultfont-bolditalic.html defaultfont.html
|
||||
!= defaultfont-bolditalic.html defaultfont-bold.html
|
||||
|
||||
fails-if(Android) != defaultjapanese-bold.html defaultjapanese.html
|
||||
!= defaultjapanese-bold.html defaultjapanese.html
|
||||
!= defaultjapanese-italic.html defaultjapanese.html
|
||||
!= defaultjapanese-oblique.html defaultjapanese.html
|
||||
!= defaultjapanese-bolditalic.html defaultjapanese.html
|
||||
|
Loading…
Reference in New Issue
Block a user