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 (const OUString &rTokenStr) const
 
vcl::font::PhysicalFontFamilyFindFontFamilyByAttributes (ImplFontAttrs nSearchType, FontWeight, FontWidth, FontItalic, const OUString &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

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

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

Definition at line 71 of file PhysicalFontCollection.cxx.

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

Definition at line 78 of file PhysicalFontCollection.cxx.

References Clear().

Member Function Documentation

void vcl::font::PhysicalFontCollection::Add ( vcl::font::PhysicalFontFace pNewData)
void vcl::font::PhysicalFontCollection::Clear ( )
std::shared_ptr< PhysicalFontCollection > vcl::font::PhysicalFontCollection::Clone ( ) const
int vcl::font::PhysicalFontCollection::Count ( ) const
inline

Definition at line 56 of file PhysicalFontCollection.hxx.

Referenced by FindFontFamily().

PhysicalFontFamily * vcl::font::PhysicalFontCollection::FindFontFamily ( std::u16string_view  rFontName) const
PhysicalFontFamily * vcl::font::PhysicalFontCollection::FindFontFamily ( vcl::font::FontSelectPattern rFSD) const
PhysicalFontFamily * vcl::font::PhysicalFontCollection::FindFontFamilyByAttributes ( ImplFontAttrs  nSearchType,
FontWeight  ,
FontWidth  ,
FontItalic  ,
const OUString &  rSearchFamily 
) const
PhysicalFontFamily * vcl::font::PhysicalFontCollection::FindFontFamilyByTokenNames ( const OUString &  rTokenStr) const
PhysicalFontFamily * vcl::font::PhysicalFontCollection::FindOrCreateFontFamily ( const OUString &  rFamilyName)
std::unique_ptr< PhysicalFontFaceCollection > vcl::font::PhysicalFontCollection::GetFontFaceCollection ( ) const
PhysicalFontFamily * vcl::font::PhysicalFontCollection::GetGlyphFallbackFont ( vcl::font::FontSelectPattern rFontSelData,
LogicalFontInstance pLogicalFont,
OUString &  rMissingCodes,
int  nFallbackLevel 
) const
PhysicalFontFamily * vcl::font::PhysicalFontCollection::ImplFindFontFamilyBySearchName ( const OUString &  rSearchName) const
private

Definition at line 293 of file PhysicalFontCollection.cxx.

References GetEnglishSearchFontName(), and maPhysicalFontFamilies.

Referenced by FindFontFamily().

PhysicalFontFamily * vcl::font::PhysicalFontCollection::ImplFindFontFamilyBySubstFontAttr ( const utl::FontNameAttr ) const
private
PhysicalFontFamily * vcl::font::PhysicalFontCollection::ImplFindFontFamilyOfDefaultFont ( ) const
private
void vcl::font::PhysicalFontCollection::ImplInitGenericGlyphFallback ( ) const
private
void vcl::font::PhysicalFontCollection::ImplInitMatchData ( ) const
private
void vcl::font::PhysicalFontCollection::SetFallbackHook ( vcl::font::GlyphFallbackFontSubstitution pHook)

Definition at line 88 of file PhysicalFontCollection.cxx.

References mpFallbackHook.

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

Definition at line 83 of file PhysicalFontCollection.cxx.

References mpPreMatchHook.

Member Data Documentation

PhysicalFontFamilies vcl::font::PhysicalFontCollection::maPhysicalFontFamilies
private
bool vcl::font::PhysicalFontCollection::mbMatchData
mutableprivate

Definition at line 80 of file PhysicalFontCollection.hxx.

Referenced by Clear(), and ImplInitMatchData().

int vcl::font::PhysicalFontCollection::mnFallbackCount
mutableprivate
vcl::font::GlyphFallbackFontSubstitution* vcl::font::PhysicalFontCollection::mpFallbackHook
private

Definition at line 86 of file PhysicalFontCollection.hxx.

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

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().

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: