From dd36db168c658ebe588396255ad61363cc4ea7af Mon Sep 17 00:00:00 2001 From: Jan-Marek Glogowski Date: Thu, 4 Oct 2018 13:25:06 +0000 Subject: UNX use font cache based glyph rect cache Drop the special / duplicate glyph rect bound cache implementation for Freetype fonts. The GlyphCache class now looks a lot like the ImplFontCache class. The lru handling for Freetype fonts is based on the byte / memory size, including the glyth bound-rect caching. Using the new common cache is effectivly removing the bound-rects from this accounting, so the garbage collection won't free them anymore. Change-Id: Ie53226596ee2287e1059a74885f52c3d64bbccaa Reviewed-on: https://gerrit.libreoffice.org/61377 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski --- vcl/unx/generic/print/genpspgraphics.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vcl/unx/generic/print') diff --git a/vcl/unx/generic/print/genpspgraphics.cxx b/vcl/unx/generic/print/genpspgraphics.cxx index 88e7fcdf901a..ae30cfad6286 100644 --- a/vcl/unx/generic/print/genpspgraphics.cxx +++ b/vcl/unx/generic/print/genpspgraphics.cxx @@ -742,8 +742,7 @@ bool GenPspGraphics::GetGlyphBoundRect(const GlyphItem& rGlyph, tools::Rectangle if( !pSF ) return false; - rRect = pSF->GetGlyphBoundRect(rGlyph); - return true; + return pSF->GetGlyphBoundRect(rGlyph, rRect); } bool GenPspGraphics::GetGlyphOutline(const GlyphItem& rGlyph, -- cgit