Bug 789933: Support non-D2D targets for getting a Path off ScaledFontDWrite. r=nrc

This commit is contained in:
Bas Schouten 2012-12-05 01:11:02 +01:00
parent dfe2a0e5d8
commit 9053be203b

View File

@ -306,9 +306,7 @@ TemporaryRef<Path>
ScaledFontDWrite::GetPathForGlyphs(const GlyphBuffer &aBuffer, const DrawTarget *aTarget)
{
if (aTarget->GetType() != BACKEND_DIRECT2D) {
// For now we only support Direct2D.
gfxWarning() << "Attempt to use Direct Write font with non-Direct2D backend";
return nullptr;
return ScaledFontBase::GetPathForGlyphs(aBuffer, aTarget);
}
RefPtr<PathBuilder> pathBuilder = aTarget->CreatePathBuilder();