diff options
-rw-r--r-- | canvas/source/cairo/cairo_textlayout.cxx | 9 | ||||
-rw-r--r-- | canvas/source/cairo/cairo_textlayout.hxx | 1 | ||||
-rw-r--r-- | unusedcode.easy | 1 |
3 files changed, 0 insertions, 11 deletions
diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx index c5bb94735934..fe55665b87e0 100644 --- a/canvas/source/cairo/cairo_textlayout.cxx +++ b/canvas/source/cairo/cairo_textlayout.cxx @@ -301,15 +301,6 @@ namespace cairocanvas return maText; } - void TextLayout::useFont( Cairo* pCairo ) - { - rendering::FontRequest aFontRequest = mpFont->getFontRequest(); - rendering::FontInfo aFontInfo = aFontRequest.FontDescription; - - cairo_select_font_face( pCairo, OUStringToOString( aFontInfo.FamilyName, RTL_TEXTENCODING_UTF8 ).getStr(), CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL ); - cairo_set_font_size( pCairo, aFontRequest.CellSize ); - } - /** * TextLayout::isCairoRenderable * diff --git a/canvas/source/cairo/cairo_textlayout.hxx b/canvas/source/cairo/cairo_textlayout.hxx index 42cc36969210..406b6738efc8 100644 --- a/canvas/source/cairo/cairo_textlayout.hxx +++ b/canvas/source/cairo/cairo_textlayout.hxx @@ -102,7 +102,6 @@ namespace cairocanvas SurfaceProviderRef mpRefDevice; sal_Int8 mnTextDirection; - void useFont( ::cairo::Cairo* pCairo ); bool isCairoRenderable(SystemFontData aSysFontData) const; }; diff --git a/unusedcode.easy b/unusedcode.easy index b860adcdea86..bb03e1e1d496 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -30,7 +30,6 @@ apitest::XPropertySet::testAddVetoableChangeListener() apitest::XPropertySet::testRemovePropertyChangeListener() apitest::XPropertySet::testRemoveVetoableChangeListener() apitest::XSpreadsheetDocument::testGetSheets() -cairocanvas::TextLayout::useFont(_cairo*) canvas::createSurfaceProxyManager(boost::shared_ptr<canvas::IRenderModule> const&) comphelper::detail::ConfigurationWrapper::getGroupReadWrite(boost::shared_ptr<comphelper::ConfigurationChanges> const&, rtl::OUString const&) const comphelper::detail::ConfigurationWrapper::getLocalizedPropertyValue(rtl::OUString const&) const |