20 #ifndef INCLUDED_VCL_INC_IMPFONTCACHE_HXX
21 #define INCLUDED_VCL_INC_IMPFONTCACHE_HXX
23 #include <boost/functional/hash.hpp>
25 #include <rtl/ref.hxx>
44 : m_pFont(pFont), m_nId(nID)
48 {
return m_pFont == aOther.
m_pFont && m_nId == aOther.
m_nId; }
56 boost::hash_combine(seed, aCache.
m_pFont);
57 boost::hash_combine(seed, aCache.
m_nId);
84 const vcl::Font&,
const Size& rPixelSize,
float fExactHeight,
bool bNonAntialias =
false);
87 int nFallbackLevel, OUString& rMissingCodes );
95 #endif // INCLUDED_VCL_INC_IMPFONTCACHE_HXX
const LogicalFontInstance * m_pFont
o3tl::lru_map< GlyphBoundRectCacheKey, tools::Rectangle, GlyphBoundRectCacheHash > GlyphBoundRectCache
bool operator==(GlyphBoundRectCacheKey const &aOther) const
size_t operator()(const FontSelectPattern &) const
LogicalFontInstance * mpLastHitCacheEntry
keeps the last hit cache entry
bool operator()(const FontSelectPattern &, const FontSelectPattern &) const
o3tl::lru_map< FontSelectPattern, rtl::Reference< LogicalFontInstance >, IFSD_Hash, IFSD_Equal > FontInstanceList
GlyphBoundRectCacheKey(const LogicalFontInstance *pFont, sal_GlyphId nID)
void CacheGlyphBoundRect(const LogicalFontInstance *, sal_GlyphId, tools::Rectangle &)
rtl::Reference< LogicalFontInstance > GetGlyphFallbackFont(PhysicalFontCollection const *, FontSelectPattern &, LogicalFontInstance *pLogicalFont, int nFallbackLevel, OUString &rMissingCodes)
bool GetCachedGlyphBoundRect(const LogicalFontInstance *, sal_GlyphId, tools::Rectangle &)
rtl::Reference< LogicalFontInstance > GetFontInstance(PhysicalFontCollection const *, FontSelectPattern &)
std::size_t operator()(GlyphBoundRectCacheKey const &aCache) const
FontInstanceList maFontInstanceList
GlyphBoundRectCache m_aBoundRectCache