mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
Extend bug 353756 to cover vector fonts as well as bitmap fonts. r=pavlov
This commit is contained in:
parent
a8d6d83666
commit
025f6b4072
@ -577,11 +577,12 @@ gfxWindowsTextRun::MeasureOrDrawReallyFast(gfxContext *aContext,
|
||||
HFONT hfont = currentFont->GetHFONT();
|
||||
SelectObject(aDC, hfont);
|
||||
|
||||
/* GetGlyphIndices is buggy for bitmap fonts, so send them to uniscribe */
|
||||
/* GetGlyphIndices is buggy for bitmap and vector fonts,
|
||||
so send them to uniscribe */
|
||||
if (!mIsASCII) {
|
||||
TEXTMETRIC metrics;
|
||||
GetTextMetrics(aDC, &metrics);
|
||||
if ((metrics.tmPitchAndFamily & (TMPF_VECTOR | TMPF_TRUETYPE)) == 0)
|
||||
if ((metrics.tmPitchAndFamily & (TMPF_TRUETYPE)) == 0)
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user