diff options
Diffstat (limited to 'vcl/win/gdi')
-rw-r--r-- | vcl/win/gdi/winlayout.cxx | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx index 468bc1ccbc1a..b7882e337f85 100644 --- a/vcl/win/gdi/winlayout.cxx +++ b/vcl/win/gdi/winlayout.cxx @@ -3531,24 +3531,6 @@ bool D2DWriteTextOutRenderer::operator ()(SalLayout const &rLayout, HDC hDC, return (succeeded && nGlyphs >= 1 && pRectToErase); } -IDWriteFontFace* D2DWriteTextOutRenderer::GetDWriteFontFace(HDC hDC) const -{ - IDWriteFontFace* pFontFace; - bool succeeded = false; - try - { - succeeded = SUCCEEDED(mpGdiInterop->CreateFontFaceFromHdc(hDC, &pFontFace)); - } - catch (const std::exception& e) - { - SAL_WARN("vcl.gdi", "Error in dwrite while creating font face: " << e.what()); - return nullptr; - } - if(succeeded) - return pFontFace; - else return nullptr; -} - bool D2DWriteTextOutRenderer::BindFont(HDC hDC) { // A TextOutRender can only be bound to one font at a time, so the |