diff options
Diffstat (limited to 'vcl/inc/unx/glyphcache.hxx')
-rw-r--r-- | vcl/inc/unx/glyphcache.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/inc/unx/glyphcache.hxx b/vcl/inc/unx/glyphcache.hxx index 5e515db564b5..50d1f071d44f 100644 --- a/vcl/inc/unx/glyphcache.hxx +++ b/vcl/inc/unx/glyphcache.hxx @@ -39,6 +39,7 @@ #include <unordered_map> class FreetypeManager; +class FreetypeFontInstance; class FreetypeFontInfo; class GlyphData; class FontConfigFontOptions; @@ -139,7 +140,7 @@ public: bool GetGlyphOutline(const GlyphItem& rGlyph, basegfx::B2DPolyPolygon&) const; bool GetAntialiasAdvice() const; - LogicalFontInstance* GetFontInstance() const { return mpFontInstance; } + FreetypeFontInstance* GetFontInstance() const { return mpFontInstance.get(); } private: friend class GlyphCache; @@ -161,7 +162,7 @@ private: typedef std::unordered_map<int,GlyphData> GlyphList; mutable GlyphList maGlyphList; - LogicalFontInstance* const mpFontInstance; + rtl::Reference<FreetypeFontInstance> mpFontInstance; // used by GlyphCache for cache LRU algorithm mutable long mnRefCount; |