diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-06-22 14:02:26 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-06-22 13:55:58 +0000 |
commit | 588ab971f2bbf3f81aa6c606aeabc4ba8099c366 (patch) | |
tree | 1459039ad892833284c4a931b24705a08e7c33f3 /vcl/headless | |
parent | 418c6167cea2bc89743fecaf7d36ec99c81891cb (diff) |
Re-factor AddTempDevFont to share it with headless backend.
Change-Id: Ic316b18eace3445edef346fe319cbb0e557607fa
Reviewed-on: https://gerrit.libreoffice.org/16412
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl/headless')
-rw-r--r-- | vcl/headless/svptextrender.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/headless/svptextrender.cxx b/vcl/headless/svptextrender.cxx index a2acf005e4e8..e58c95c62bd3 100644 --- a/vcl/headless/svptextrender.cxx +++ b/vcl/headless/svptextrender.cxx @@ -291,10 +291,11 @@ void SvpTextRender::ClearDevFontCache() rGC.ClearFontCache(); } -bool SvpTextRender::AddTempDevFont( PhysicalFontCollection*, - const OUString&, const OUString& ) +bool SvpTextRender::AddTempDevFont( PhysicalFontCollection* pFontCollection, + const OUString& rFileURL, + const OUString& rFontName ) { - return false; + return GenPspGraphics::AddTempDevFontHelper( pFontCollection, rFileURL, rFontName, SvpGlyphCache::GetInstance() ); } bool SvpTextRender::CreateFontSubset( |