summaryrefslogtreecommitdiff
path: root/vcl/inc/impfontcache.hxx
diff options
context:
space:
mode:
authorJan-Marek Glogowski <jan-marek.glogowski@extern.cib.de>2019-11-18 13:56:55 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2019-11-19 03:14:45 +0100
commit852a0f9cd88ef1f646af67e59a0fdd779b0e7627 (patch)
tree48dc90a99620311e826b25a625f2b9ce15be571b /vcl/inc/impfontcache.hxx
parentf8e1f8652255cadd80a991aa3e059ee631b333b8 (diff)
Rename GlyphCache to FreetypeManager
And while at it remove the unneeded getPlatformGlyphCache abstraction. Change-Id: Id5cad751eda9e6bf177dfb4816280d7c5af7066a Reviewed-on: https://gerrit.libreoffice.org/83125 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/inc/impfontcache.hxx')
-rw-r--r--vcl/inc/impfontcache.hxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/vcl/inc/impfontcache.hxx b/vcl/inc/impfontcache.hxx
index 7e752da1fe5e..78dfb4a71ad9 100644
--- a/vcl/inc/impfontcache.hxx
+++ b/vcl/inc/impfontcache.hxx
@@ -35,22 +35,22 @@ class PhysicalFontCollection;
// TODO: closely couple with PhysicalFontCollection
-struct GlpyhBoundRectCacheKey
+struct GlyphBoundRectCacheKey
{
const LogicalFontInstance* m_pFont;
const sal_GlyphId m_nId;
- GlpyhBoundRectCacheKey(const LogicalFontInstance* pFont, sal_GlyphId nID)
+ GlyphBoundRectCacheKey(const LogicalFontInstance* pFont, sal_GlyphId nID)
: m_pFont(pFont), m_nId(nID)
{}
- bool operator==(GlpyhBoundRectCacheKey const& aOther) const
+ bool operator==(GlyphBoundRectCacheKey const& aOther) const
{ return m_pFont == aOther.m_pFont && m_nId == aOther.m_nId; }
};
-struct GlpyhBoundRectCacheHash
+struct GlyphBoundRectCacheHash
{
- std::size_t operator()(GlpyhBoundRectCacheKey const& aCache) const
+ std::size_t operator()(GlyphBoundRectCacheKey const& aCache) const
{
std::size_t seed = 0;
boost::hash_combine(seed, aCache.m_pFont);
@@ -59,9 +59,9 @@ struct GlpyhBoundRectCacheHash
}
};
-typedef o3tl::lru_map<GlpyhBoundRectCacheKey, tools::Rectangle,
- GlpyhBoundRectCacheHash> GlpyhBoundRectCache;
-typedef GlpyhBoundRectCache::key_value_pair_t GlpyhBoundRectCachePair;
+typedef o3tl::lru_map<GlyphBoundRectCacheKey, tools::Rectangle,
+ GlyphBoundRectCacheHash> GlyphBoundRectCache;
+typedef GlyphBoundRectCache::key_value_pair_t GlyphBoundRectCachePair;
class ImplFontCache
{
@@ -74,7 +74,7 @@ private:
LogicalFontInstance* mpLastHitCacheEntry; ///< keeps the last hit cache entry
FontInstanceList maFontInstanceList;
- GlpyhBoundRectCache m_aBoundRectCache;
+ GlyphBoundRectCache m_aBoundRectCache;
rtl::Reference<LogicalFontInstance> GetFontInstance(PhysicalFontCollection const*, FontSelectPattern&);