Fix windows bustage. (Bug 363706)

This commit is contained in:
L. David Baron 2008-06-17 14:54:25 -07:00
parent a25327bdfa
commit 805167d689

View File

@ -633,9 +633,9 @@ gfxWindowsFont::ComputeMetrics()
// Cache the width of digit zero.
// XXX MSDN (http://msdn.microsoft.com/en-us/library/ms534223.aspx)
// does not say what the failure modes for GetExtentPoint32 are -
// does not say what the failure modes for GetTextExtentPoint32 are -
// is it safe to assume it will fail iff the font has no '0'?
if (GetExtentPoint32(dc, "0", 1, &size))
if (GetTextExtentPoint32(dc, "0", 1, &size))
mMetrics->zeroOrAveCharWidth = ROUND(size.cx);
else
mMetrics->zeroOrAveCharWidth = mMetrics->aveCharWidth;