diff options
-rw-r--r-- | canvas/source/cairo/cairo_textlayout.cxx | 27 | ||||
-rw-r--r-- | canvas/source/cairo/cairo_textlayout.hxx | 2 |
2 files changed, 0 insertions, 29 deletions
diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx index 04db33135578..d81a739b4956 100644 --- a/canvas/source/cairo/cairo_textlayout.cxx +++ b/canvas/source/cairo/cairo_textlayout.cxx @@ -257,33 +257,6 @@ namespace cairocanvas } /** - * TextLayout::isCairoRenderable - * - * Features currently not supported by Cairo (VCL rendering is used as fallback): - * - vertical glyphs - * - * @return true, if text/font can be rendered with cairo - **/ - bool TextLayout::isCairoRenderable(SystemFontData aSysFontData) const - { -#if defined CAIRO_HAS_FT_FONT - // is font usable? - if (!aSysFontData.nFontId) - return false; -#endif - - // vertical glyph rendering is not supported in cairo for now - if (aSysFontData.bVerticalCharacterType) - { - SAL_WARN("canvas.cairo", ":cairocanvas::TextLayout::isCairoRenderable(): Vertical Character Style not supported"); - return false; - } - - return true; - } - - - /** * TextLayout::draw * * Cairo-based text rendering. Draw text directly on the cairo surface with cairo fonts. diff --git a/canvas/source/cairo/cairo_textlayout.hxx b/canvas/source/cairo/cairo_textlayout.hxx index c7dd023af1bf..6254108a50ad 100644 --- a/canvas/source/cairo/cairo_textlayout.hxx +++ b/canvas/source/cairo/cairo_textlayout.hxx @@ -101,8 +101,6 @@ namespace cairocanvas CanvasFont::Reference mpFont; SurfaceProviderRef mpRefDevice; sal_Int8 mnTextDirection; - - bool isCairoRenderable(SystemFontData aSysFontData) const; }; } |