LibreOffice Module vcl (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
vcl::font::PhysicalFontCollection Class Referencefinal

#include <PhysicalFontCollection.hxx>

Collaboration diagram for vcl::font::PhysicalFontCollection:
[legend]

Public Member Functions

 PhysicalFontCollection ()
 
 ~PhysicalFontCollection ()
 
void Add (vcl::font::PhysicalFontFace *)
 
void Clear ()
 
int Count () const
 
vcl::font::PhysicalFontFamilyFindFontFamily (std::u16string_view rFontName) const
 
vcl::font::PhysicalFontFamilyFindOrCreateFontFamily (const OUString &rFamilyName)
 
vcl::font::PhysicalFontFamilyFindFontFamily (vcl::font::FontSelectPattern &) const
 
vcl::font::PhysicalFontFamilyFindFontFamilyByTokenNames (std::u16string_view rTokenStr) const
 
vcl::font::PhysicalFontFamilyFindFontFamilyByAttributes (ImplFontAttrs nSearchType, FontWeight, FontWidth, FontItalic, std::u16string_view rSearchFamily) const
 
vcl::font::PhysicalFontFamilyGetGlyphFallbackFont (vcl::font::FontSelectPattern &, LogicalFontInstance *pLogicalFont, OUString &rMissingCodes, int nFallbackLevel) const
 
void SetPreMatchHook (vcl::font::PreMatchFontSubstitution *)
 
void SetFallbackHook (vcl::font::GlyphFallbackFontSubstitution *)
 
std::shared_ptr< PhysicalFontCollectionClone () const
 
std::unique_ptr< vcl::font::PhysicalFontFaceCollectionGetFontFaceCollection () const
 

Private Types

typedef std::unordered_map< OUString, std::unique_ptr< vcl::font::PhysicalFontFamily > > PhysicalFontFamilies
 

Private Member Functions

void ImplInitMatchData () const
 
void ImplInitGenericGlyphFallback () const
 
vcl::font::PhysicalFontFamilyImplFindFontFamilyBySearchName (const OUString &) const
 
vcl::font::PhysicalFontFamilyImplFindFontFamilyBySubstFontAttr (const utl::FontNameAttr &) const
 
vcl::font::PhysicalFontFamilyImplFindFontFamilyOfDefaultFont () const
 

Private Attributes

bool mbMatchData
 
PhysicalFontFamilies maPhysicalFontFamilies
 
vcl::font::PreMatchFontSubstitutionmpPreMatchHook
 
vcl::font::GlyphFallbackFontSubstitutionmpFallbackHook
 
std::unique_ptr< std::array< vcl::font::PhysicalFontFamily *, MAX_GLYPHFALLBACK > > mpFallbackList
 
int mnFallbackCount
 

Detailed Description

Definition at line 47 of file PhysicalFontCollection.hxx.

Member Typedef Documentation

◆ PhysicalFontFamilies

typedef std::unordered_map<OUString, std::unique_ptr<vcl::font::PhysicalFontFamily> > vcl::font::PhysicalFontCollection::PhysicalFontFamilies
private

Definition at line 82 of file PhysicalFontCollection.hxx.

Constructor & Destructor Documentation

◆ PhysicalFontCollection()

vcl::font::PhysicalFontCollection::PhysicalFontCollection ( )
explicit

Definition at line 71 of file PhysicalFontCollection.cxx.

◆ ~PhysicalFontCollection()

vcl::font::PhysicalFontCollection::~PhysicalFontCollection ( )

Definition at line 78 of file PhysicalFontCollection.cxx.

References Clear().

Member Function Documentation

◆ Add()

void vcl::font::PhysicalFontCollection::Add ( vcl::font::PhysicalFontFace pNewData)

◆ Clear()

void vcl::font::PhysicalFontCollection::Clear ( )

◆ Clone()

std::shared_ptr< PhysicalFontCollection > vcl::font::PhysicalFontCollection::Clone ( ) const

◆ Count()

int vcl::font::PhysicalFontCollection::Count ( ) const
inline

Definition at line 56 of file PhysicalFontCollection.hxx.

Referenced by FindFontFamily().

◆ FindFontFamily() [1/2]

PhysicalFontFamily * vcl::font::PhysicalFontCollection::FindFontFamily ( std::u16string_view  rFontName) const

◆ FindFontFamily() [2/2]

PhysicalFontFamily * vcl::font::PhysicalFontCollection::FindFontFamily ( vcl::font::FontSelectPattern rFSD) const

◆ FindFontFamilyByAttributes()

PhysicalFontFamily * vcl::font::PhysicalFontCollection::FindFontFamilyByAttributes ( ImplFontAttrs  nSearchType,
FontWeight  eSearchWeight,
FontWidth  eSearchWidth,
FontItalic  eSearchItalic,
std::u16string_view  rSearchFamily 
) const

◆ FindFontFamilyByTokenNames()

PhysicalFontFamily * vcl::font::PhysicalFontCollection::FindFontFamilyByTokenNames ( std::u16string_view  rTokenStr) const

◆ FindOrCreateFontFamily()

PhysicalFontFamily * vcl::font::PhysicalFontCollection::FindOrCreateFontFamily ( const OUString &  rFamilyName)

◆ GetFontFaceCollection()

std::unique_ptr< PhysicalFontFaceCollection > vcl::font::PhysicalFontCollection::GetFontFaceCollection ( ) const

◆ GetGlyphFallbackFont()

PhysicalFontFamily * vcl::font::PhysicalFontCollection::GetGlyphFallbackFont ( vcl::font::FontSelectPattern rFontSelData,
LogicalFontInstance pLogicalFont,
OUString &  rMissingCodes,
int  nFallbackLevel 
) const

◆ ImplFindFontFamilyBySearchName()

PhysicalFontFamily * vcl::font::PhysicalFontCollection::ImplFindFontFamilyBySearchName ( const OUString &  rSearchName) const
private

Definition at line 305 of file PhysicalFontCollection.cxx.

References GetEnglishSearchFontName(), and maPhysicalFontFamilies.

Referenced by FindFontFamily().

◆ ImplFindFontFamilyBySubstFontAttr()

PhysicalFontFamily * vcl::font::PhysicalFontCollection::ImplFindFontFamilyBySubstFontAttr ( const utl::FontNameAttr rFontAttr) const
private

◆ ImplFindFontFamilyOfDefaultFont()

PhysicalFontFamily * vcl::font::PhysicalFontCollection::ImplFindFontFamilyOfDefaultFont ( ) const
private

◆ ImplInitGenericGlyphFallback()

void vcl::font::PhysicalFontCollection::ImplInitGenericGlyphFallback ( ) const
private

◆ ImplInitMatchData()

void vcl::font::PhysicalFontCollection::ImplInitMatchData ( ) const
private

◆ SetFallbackHook()

void vcl::font::PhysicalFontCollection::SetFallbackHook ( vcl::font::GlyphFallbackFontSubstitution pHook)

Definition at line 88 of file PhysicalFontCollection.cxx.

References mpFallbackHook.

◆ SetPreMatchHook()

void vcl::font::PhysicalFontCollection::SetPreMatchHook ( vcl::font::PreMatchFontSubstitution pHook)

Definition at line 83 of file PhysicalFontCollection.cxx.

References mpPreMatchHook.

Member Data Documentation

◆ maPhysicalFontFamilies

PhysicalFontFamilies vcl::font::PhysicalFontCollection::maPhysicalFontFamilies
private

◆ mbMatchData

bool vcl::font::PhysicalFontCollection::mbMatchData
mutableprivate

Definition at line 80 of file PhysicalFontCollection.hxx.

Referenced by Clear(), and ImplInitMatchData().

◆ mnFallbackCount

int vcl::font::PhysicalFontCollection::mnFallbackCount
mutableprivate

◆ mpFallbackHook

vcl::font::GlyphFallbackFontSubstitution* vcl::font::PhysicalFontCollection::mpFallbackHook
private

Definition at line 86 of file PhysicalFontCollection.hxx.

Referenced by Clone(), GetGlyphFallbackFont(), and SetFallbackHook().

◆ mpFallbackList

std::unique_ptr<std::array<vcl::font::PhysicalFontFamily*,MAX_GLYPHFALLBACK> > vcl::font::PhysicalFontCollection::mpFallbackList
mutableprivate

Definition at line 88 of file PhysicalFontCollection.hxx.

Referenced by Clear(), and ImplInitGenericGlyphFallback().

◆ mpPreMatchHook

vcl::font::PreMatchFontSubstitution* vcl::font::PhysicalFontCollection::mpPreMatchHook
private

Definition at line 85 of file PhysicalFontCollection.hxx.

Referenced by Clone(), FindFontFamily(), and SetPreMatchHook().


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