LibreOffice Module vcl (master)  1
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ImplFontCache Class Reference

#include <impfontcache.hxx>

Collaboration diagram for ImplFontCache:
[legend]

Classes

struct  IFSD_Equal
 
struct  IFSD_Hash
 

Public Member Functions

 ImplFontCache ()
 
 ~ImplFontCache ()
 
rtl::Reference< LogicalFontInstanceGetFontInstance (PhysicalFontCollection const *, const vcl::Font &, const Size &rPixelSize, float fExactHeight, bool bNonAntialias=false)
 
rtl::Reference< LogicalFontInstanceGetGlyphFallbackFont (PhysicalFontCollection const *, FontSelectPattern &, LogicalFontInstance *pLogicalFont, int nFallbackLevel, OUString &rMissingCodes)
 
bool GetCachedGlyphBoundRect (const LogicalFontInstance *, sal_GlyphId, tools::Rectangle &)
 
void CacheGlyphBoundRect (const LogicalFontInstance *, sal_GlyphId, tools::Rectangle &)
 
void Invalidate ()
 

Private Types

typedef o3tl::lru_map< FontSelectPattern, rtl::Reference< LogicalFontInstance >, IFSD_Hash, IFSD_EqualFontInstanceList
 
typedef FontInstanceList::key_value_pair_t FontInstanceListPair
 

Private Member Functions

rtl::Reference< LogicalFontInstanceGetFontInstance (PhysicalFontCollection const *, FontSelectPattern &)
 

Private Attributes

LogicalFontInstancempLastHitCacheEntry
 keeps the last hit cache entry More...
 
FontInstanceList maFontInstanceList
 
GlpyhBoundRectCache m_aBoundRectCache
 

Detailed Description

Definition at line 66 of file impfontcache.hxx.

Member Typedef Documentation

Definition at line 72 of file impfontcache.hxx.

Definition at line 73 of file impfontcache.hxx.

Constructor & Destructor Documentation

ImplFontCache::ImplFontCache ( )

Definition at line 84 of file fontcache.cxx.

ImplFontCache::~ImplFontCache ( )

Definition at line 91 of file fontcache.cxx.

References maFontInstanceList.

Member Function Documentation

void ImplFontCache::CacheGlyphBoundRect ( const LogicalFontInstance pFont,
sal_GlyphId  nID,
tools::Rectangle rRect 
)
bool ImplFontCache::GetCachedGlyphBoundRect ( const LogicalFontInstance pFont,
sal_GlyphId  nID,
tools::Rectangle rRect 
)
rtl::Reference< LogicalFontInstance > ImplFontCache::GetFontInstance ( PhysicalFontCollection const *  pFontList,
FontSelectPattern aFontSelData 
)
private
rtl::Reference< LogicalFontInstance > ImplFontCache::GetFontInstance ( PhysicalFontCollection const *  pFontList,
const vcl::Font rFont,
const Size rPixelSize,
float  fExactHeight,
bool  bNonAntialias = false 
)

Definition at line 97 of file fontcache.cxx.

References vcl::Font::GetFamilyName(), and GetFontInstance().

rtl::Reference< LogicalFontInstance > ImplFontCache::GetGlyphFallbackFont ( PhysicalFontCollection const *  pFontCollection,
FontSelectPattern rFontSelData,
LogicalFontInstance pLogicalFont,
int  nFallbackLevel,
OUString &  rMissingCodes 
)
void ImplFontCache::Invalidate ( )

Member Data Documentation

GlpyhBoundRectCache ImplFontCache::m_aBoundRectCache
private
FontInstanceList ImplFontCache::maFontInstanceList
private

Definition at line 76 of file impfontcache.hxx.

Referenced by GetFontInstance(), Invalidate(), and ~ImplFontCache().

LogicalFontInstance* ImplFontCache::mpLastHitCacheEntry
private

keeps the last hit cache entry

Definition at line 75 of file impfontcache.hxx.

Referenced by GetFontInstance(), and Invalidate().


The documentation for this class was generated from the following files: