mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 789933: Support non-D2D targets for getting a Path off ScaledFontDWrite. r=nrc
This commit is contained in:
parent
dfe2a0e5d8
commit
9053be203b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user