LibreOffice Module vcl (master)
1
|
#include <PhysicalFontFamily.hxx>
Public Member Functions | |
PhysicalFontFamily (const OUString &rSearchName) | |
~PhysicalFontFamily () | |
const OUString & | GetFamilyName () const |
const OUString & | GetSearchName () const |
const OUString & | GetAliasNames () const |
int | GetMinQuality () const |
FontTypeFaces | GetTypeFaces () const |
void | GetFontHeights (o3tl::sorted_vector< int > &rHeights) const |
const OUString & | GetMatchFamilyName () const |
ImplFontAttrs | GetMatchType () const |
FontWeight | GetMatchWeight () const |
FontWidth | GetMatchWidth () const |
void | InitMatchData (const utl::FontSubstConfiguration &, const OUString &rSearchName) |
void | AddFontFace (PhysicalFontFace *) |
PhysicalFontFace * | FindBestFontFace (const FontSelectPattern &rFSD) const |
void | UpdateDevFontList (ImplDeviceFontList &) const |
void | UpdateCloneFontList (PhysicalFontCollection &) const |
Static Public Member Functions | |
static void | CalcType (ImplFontAttrs &rType, FontWeight &rWeight, FontWidth &rWidth, FontFamily eFamily, const utl::FontNameAttr *pFontAttr) |
Private Attributes | |
std::vector< rtl::Reference< PhysicalFontFace > > | maFontFaces |
OUString | maFamilyName |
OUString | maSearchName |
OUString | maMapNames |
FontTypeFaces | mnTypeFaces |
FontFamily | meFamily |
FontPitch | mePitch |
int | mnMinQuality |
ImplFontAttrs | mnMatchType |
OUString | maMatchFamilyName |
FontWeight | meMatchWeight |
FontWidth | meMatchWidth |
Definition at line 52 of file PhysicalFontFamily.hxx.
PhysicalFontFamily::PhysicalFontFamily | ( | const OUString & | rSearchName | ) |
Definition at line 90 of file PhysicalFontFamily.cxx.
References FAMILY_DONTKNOW, NONE, None, PITCH_DONTKNOW, WEIGHT_DONTKNOW, and WIDTH_DONTKNOW.
PhysicalFontFamily::~PhysicalFontFamily | ( | ) |
Definition at line 101 of file PhysicalFontFamily.cxx.
void PhysicalFontFamily::AddFontFace | ( | PhysicalFontFace * | pNewFontFace | ) |
Definition at line 105 of file PhysicalFontFamily.cxx.
References Bold, PhysicalFontFace::CompareWithSize(), FAMILY_DONTKNOW, FontAttributes::GetFamilyName(), GetFamilyName(), FontAttributes::GetFamilyType(), FontAttributes::GetItalic(), FontAttributes::GetMapNames(), FontAttributes::GetPitch(), FontAttributes::GetQuality(), FontAttributes::GetWeight(), FontAttributes::IsSymbolFont(), Italic, ITALIC_NONE, ITALIC_NORMAL, ITALIC_OBLIQUE, Light, maFamilyName, maFontFaces, maMapNames, meFamily, mePitch, mnMinQuality, mnTypeFaces, NoneItalic, NoneSymbol, Normal, PITCH_DONTKNOW, Scalable, FontAttributes::SetFamilyName(), Symbol, WEIGHT_DONTKNOW, WEIGHT_SEMIBOLD, and WEIGHT_SEMILIGHT.
Referenced by UpdateCloneFontList().
|
static |
Definition at line 26 of file PhysicalFontFamily.cxx.
References FAMILY_DECORATIVE, FAMILY_DONTKNOW, FAMILY_MODERN, FAMILY_ROMAN, FAMILY_SCRIPT, FAMILY_SWISS, utl::FontNameAttr::Type, utl::FontNameAttr::Weight, WEIGHT_DONTKNOW, WEIGHT_NORMAL, utl::FontNameAttr::Width, WIDTH_DONTKNOW, and WIDTH_NORMAL.
Referenced by PhysicalFontCollection::FindFontFamily(), and InitMatchData().
PhysicalFontFace * PhysicalFontFamily::FindBestFontFace | ( | const FontSelectPattern & | rFSD | ) | const |
Definition at line 200 of file PhysicalFontFamily.cxx.
References PhysicalFontFace::IsBetterMatch(), maFontFaces, maSearchName, and FontSelectPattern::maTargetName.
Referenced by ImplFontCache::GetFontInstance().
|
inline |
Definition at line 60 of file PhysicalFontFamily.hxx.
|
inline |
Definition at line 58 of file PhysicalFontFamily.hxx.
Referenced by AddFontFace(), OutputDevice::GetDefaultFont(), ImplFontCache::GetGlyphFallbackFont(), and UpdateCloneFontList().
void PhysicalFontFamily::GetFontHeights | ( | o3tl::sorted_vector< int > & | rHeights | ) | const |
Definition at line 245 of file PhysicalFontFamily.cxx.
References PhysicalFontFace::GetHeight(), o3tl::sorted_vector< Value, Compare, Find, class >::insert(), and maFontFaces.
Referenced by PhysicalFontCollection::GetDeviceFontSizeList().
|
inline |
Definition at line 65 of file PhysicalFontFamily.hxx.
Referenced by PhysicalFontCollection::FindFontFamilyByAttributes().
|
inline |
Definition at line 66 of file PhysicalFontFamily.hxx.
Referenced by PhysicalFontCollection::FindFontFamilyByAttributes(), and PhysicalFontCollection::ImplFindFontFamilyOfDefaultFont().
|
inline |
Definition at line 67 of file PhysicalFontFamily.hxx.
Referenced by PhysicalFontCollection::FindFontFamilyByAttributes().
|
inline |
Definition at line 68 of file PhysicalFontFamily.hxx.
Referenced by PhysicalFontCollection::FindFontFamilyByAttributes().
|
inline |
Definition at line 61 of file PhysicalFontFamily.hxx.
Referenced by PhysicalFontCollection::ImplInitGenericGlyphFallback().
|
inline |
Definition at line 59 of file PhysicalFontFamily.hxx.
Referenced by ImplFontCache::GetFontInstance().
|
inline |
Definition at line 62 of file PhysicalFontFamily.hxx.
Referenced by PhysicalFontCollection::FindFontFamilyByAttributes().
void PhysicalFontFamily::InitMatchData | ( | const utl::FontSubstConfiguration & | rFontSubst, |
const OUString & | rSearchName | ||
) |
Definition at line 182 of file PhysicalFontFamily.cxx.
References CalcType(), lcl_IsCJKFont(), maFamilyName, maMatchFamilyName, meFamily, meMatchWeight, meMatchWidth, and mnMatchType.
Referenced by PhysicalFontCollection::ImplInitMatchData().
void PhysicalFontFamily::UpdateCloneFontList | ( | PhysicalFontCollection & | rFontCollection | ) | const |
Definition at line 255 of file PhysicalFontFamily.cxx.
References AddFontFace(), assert(), PhysicalFontCollection::FindOrCreateFontFamily(), GetEnglishSearchFontName(), GetFamilyName(), and maFontFaces.
Referenced by PhysicalFontCollection::Clone().
void PhysicalFontFamily::UpdateDevFontList | ( | ImplDeviceFontList & | rDevFontList | ) | const |
Definition at line 233 of file PhysicalFontFamily.cxx.
References ImplDeviceFontList::Add(), PhysicalFontFace::CompareIgnoreSize(), and maFontFaces.
Referenced by PhysicalFontCollection::GetDeviceFontList().
|
private |
Definition at line 85 of file PhysicalFontFamily.hxx.
Referenced by AddFontFace(), and InitMatchData().
|
private |
Definition at line 83 of file PhysicalFontFamily.hxx.
Referenced by AddFontFace(), FindBestFontFace(), GetFontHeights(), UpdateCloneFontList(), and UpdateDevFontList().
|
private |
Definition at line 87 of file PhysicalFontFamily.hxx.
Referenced by AddFontFace().
|
private |
Definition at line 94 of file PhysicalFontFamily.hxx.
Referenced by InitMatchData().
|
private |
Definition at line 86 of file PhysicalFontFamily.hxx.
Referenced by FindBestFontFace().
|
private |
Definition at line 89 of file PhysicalFontFamily.hxx.
Referenced by AddFontFace(), and InitMatchData().
|
private |
Definition at line 95 of file PhysicalFontFamily.hxx.
Referenced by InitMatchData().
|
private |
Definition at line 96 of file PhysicalFontFamily.hxx.
Referenced by InitMatchData().
|
private |
Definition at line 90 of file PhysicalFontFamily.hxx.
Referenced by AddFontFace().
|
private |
Definition at line 93 of file PhysicalFontFamily.hxx.
Referenced by InitMatchData().
|
private |
Definition at line 91 of file PhysicalFontFamily.hxx.
Referenced by AddFontFace().
|
private |
Definition at line 88 of file PhysicalFontFamily.hxx.
Referenced by AddFontFace().