summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-01-13 22:12:45 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-01-13 22:12:45 +0100
commit6086949c9e29339d097585137e571aa780c24257 (patch)
treea4973dfe0dae430cdedbc99abd2a858c766910c5 /canvas
parenta2dd3feaea16a765956aecacdd6cc21ab5404a5b (diff)
Remove unused function useFont
Change-Id: Icaa3e130ebd4eb168a62a2b45cf8f7a222c0764e
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/cairo/cairo_textlayout.cxx9
-rw-r--r--canvas/source/cairo/cairo_textlayout.hxx1
2 files changed, 0 insertions, 10 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;
};