Bug 758531: DWrite fonts create mScaledFont on demand. This causes GetCairoScaledFont to return NULL. This subsequently caused the surface to go into an error status which caused the CreateSimilar call to fail for that surface. This patch properly uses the call which will create the cairo_scaled_font_t if it's not there yet. r=jrmuizel

This commit is contained in:
Bas Schouten 2012-10-23 02:26:27 +02:00
Родитель 21dc6b90ef
Коммит 70dbd4cbf2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -763,7 +763,7 @@ gfxDWriteFont::GetScaledFont(mozilla::gfx::DrawTarget *aTarget)
if (wantCairo) {
mAzureScaledFont = Factory::CreateScaledFontWithCairo(nativeFont,
GetAdjustedSize(),
GetCairoScaledFont());
CairoScaledFont());
} else {
mAzureScaledFont = Factory::CreateScaledFontForNativeFont(nativeFont,
GetAdjustedSize());