зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1056479 p7 - fixup assertion for non-italic fallback. r=m_kato
This commit is contained in:
Родитель
6ea78832dc
Коммит
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.
|
||||
// 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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче