Bug 1056479 p7 - fixup assertion for non-italic fallback. r=m_kato

This commit is contained in:
John Daggett 2015-05-13 14:11:26 +09:00
parent 6ea78832dc
commit 340819d049

View File

@ -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.
// Only do this for platform fonts, not userfonts.
fe = ff.FontEntry();
if (mStyle.style != NS_FONT_STYLE_NORMAL &&
!ff.FontEntry()->IsUserFont()) {
font = FindNonItalicFaceForChar(mFonts[i].Family(), aCh);
!fe->mIsUserFontContainer &&
!fe->IsUserFont()) {
font = FindNonItalicFaceForChar(ff.Family(), aCh);
if (font) {
*aMatchType = gfxTextRange::kFontGroup;
return font.forget();