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 (vcl::font::PhysicalFontCollection const *, const vcl::Font &, const Size &rPixelSize, float fExactHeight, bool bNonAntialias=false)
 
rtl::Reference< LogicalFontInstanceGetGlyphFallbackFont (vcl::font::PhysicalFontCollection const *, vcl::font::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< vcl::font::FontSelectPattern, rtl::Reference< LogicalFontInstance >, IFSD_Hash, IFSD_EqualFontInstanceList
 

Private Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 65 of file impfontcache.hxx.

Member Typedef Documentation

◆ FontInstanceList

Definition at line 71 of file impfontcache.hxx.

Constructor & Destructor Documentation

◆ ImplFontCache()

ImplFontCache::ImplFontCache ( )

Definition at line 90 of file fontcache.cxx.

References max.

◆ ~ImplFontCache()

ImplFontCache::~ImplFontCache ( )

Definition at line 97 of file fontcache.cxx.

References DBG_TESTSOLARMUTEX, and maFontInstanceList.

Member Function Documentation

◆ CacheGlyphBoundRect()

void ImplFontCache::CacheGlyphBoundRect ( const LogicalFontInstance pFont,
sal_GlyphId  nID,
tools::Rectangle rRect 
)

◆ GetCachedGlyphBoundRect()

bool ImplFontCache::GetCachedGlyphBoundRect ( const LogicalFontInstance pFont,
sal_GlyphId  nID,
tools::Rectangle rRect 
)

◆ GetFontInstance() [1/2]

rtl::Reference< LogicalFontInstance > ImplFontCache::GetFontInstance ( vcl::font::PhysicalFontCollection const *  pFontList,
const vcl::Font rFont,
const Size rPixelSize,
float  fExactHeight,
bool  bNonAntialias = false 
)

Definition at line 106 of file fontcache.cxx.

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

◆ GetFontInstance() [2/2]

rtl::Reference< LogicalFontInstance > ImplFontCache::GetFontInstance ( vcl::font::PhysicalFontCollection const *  pFontList,
vcl::font::FontSelectPattern aFontSelData 
)
private

◆ GetGlyphFallbackFont()

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

◆ Invalidate()

void ImplFontCache::Invalidate ( )

Member Data Documentation

◆ m_aBoundRectCache

GlyphBoundRectCache ImplFontCache::m_aBoundRectCache
private

◆ maFontInstanceList

FontInstanceList ImplFontCache::maFontInstanceList
private

Definition at line 74 of file impfontcache.hxx.

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

◆ mpLastHitCacheEntry

LogicalFontInstance* ImplFontCache::mpLastHitCacheEntry
private

keeps the last hit cache entry

Definition at line 73 of file impfontcache.hxx.

Referenced by GetFontInstance(), and Invalidate().


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