mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 1056479 p7 - fixup assertion for non-italic fallback. r=m_kato
This commit is contained in:
parent
6ea78832dc
commit
340819d049
@ -2803,9 +2803,11 @@ gfxFontGroup::FindFontForChar(uint32_t aCh, uint32_t aPrevCh, uint32_t aNextCh,
|
|||||||
|
|
||||||
// If italic, test the regular face to see if it supports the character.
|
// If italic, test the regular face to see if it supports the character.
|
||||||
// Only do this for platform fonts, not userfonts.
|
// Only do this for platform fonts, not userfonts.
|
||||||
|
fe = ff.FontEntry();
|
||||||
if (mStyle.style != NS_FONT_STYLE_NORMAL &&
|
if (mStyle.style != NS_FONT_STYLE_NORMAL &&
|
||||||
!ff.FontEntry()->IsUserFont()) {
|
!fe->mIsUserFontContainer &&
|
||||||
font = FindNonItalicFaceForChar(mFonts[i].Family(), aCh);
|
!fe->IsUserFont()) {
|
||||||
|
font = FindNonItalicFaceForChar(ff.Family(), aCh);
|
||||||
if (font) {
|
if (font) {
|
||||||
*aMatchType = gfxTextRange::kFontGroup;
|
*aMatchType = gfxTextRange::kFontGroup;
|
||||||
return font.forget();
|
return font.forget();
|
||||||
|
Loading…
Reference in New Issue
Block a user