Extend bug 353756 to cover vector fonts as well as bitmap fonts. r=pavlov

This commit is contained in:
smontagu%smontagu.org 2006-12-28 17:23:21 +00:00
parent a8d6d83666
commit 025f6b4072

View File

@ -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;
}