LibreOffice Module vcl (master)  1
Classes | Enumerations | Functions | Variables
vcl::font Namespace Reference

A PhysicalFontFaceCollection is created by a PhysicalFontCollection and becomes invalid when original PhysicalFontCollection is modified. More...

Classes

class  DirectFontSubstitution
 DirectFontSubstitution is for Tools->Options->FontReplacement and PsPrinter substitutions The class is just a simple port of the unmaintainable manual-linked-list based mechanism. More...
 
struct  Feature
 
class  FeatureCollector
 
class  FeatureDefinition
 
struct  FeatureID
 
struct  FeatureParameter
 
class  FeatureParser
 
struct  FeatureSetting
 
struct  FontMatchStatus
 
class  FontSelectPattern
 
struct  FontSubstEntry
 
class  FontSubstitution
 
class  GlyphFallbackFontSubstitution
 Abstracts the concept of finding the best font to support an incomplete font. More...
 
class  OpenTypeFeatureDefinitionList
 
class  OpenTypeFeatureDefinitionListPrivate
 
class  PhysicalFontCollection
 
class  PhysicalFontFace
 abstract base class for physical font faces More...
 
class  PhysicalFontFaceCollection
 
class  PhysicalFontFamily
 
class  PreMatchFontSubstitution
 Abstracts the concept of a configured font substitution before the availability of the originally selected font has been checked. More...
 

Enumerations

enum  FontTypeFaces {
  FontTypeFaces::NONE = 0x00,
  FontTypeFaces::Scalable = 0x01,
  FontTypeFaces::Symbol = 0x02,
  FontTypeFaces::NoneSymbol = 0x04,
  FontTypeFaces::Light = 0x08,
  FontTypeFaces::Bold = 0x10,
  FontTypeFaces::Normal = 0x20,
  FontTypeFaces::NoneItalic = 0x40,
  FontTypeFaces::Italic = 0x80
}
 
enum  FeatureParameterType {
  FeatureParameterType::BOOL,
  FeatureParameterType::ENUM
}
 
enum  FeatureType {
  FeatureType::OpenType,
  FeatureType::Graphite
}
 

Functions

void ImplFontSubstitute (OUString &rFontName)
 
OUString featureCodeAsString (uint32_t nFeature)
 
OUString trimFontNameFeatures (OUString const &rFontName)
 
static bool FindMetricCompatibleFont (FontSelectPattern &rFontSelData)
 
static int FamilyNameMatchValue (FontSelectPattern const &rFSP, std::u16string_view sFontFamily)
 
static int StyleNameMatchValue (FontMatchStatus const &rStatus, OUString const &rStyle)
 
static int PitchMatchValue (FontSelectPattern const &rFSP, FontPitch ePitch)
 
static int PreferNormalFontWidthMatchValue (FontWidth eWidthType)
 
static int WeightMatchValue (FontSelectPattern const &rFSP, FontWeight eWeight)
 
static int ItalicMatchValue (FontSelectPattern const &rFSP, FontItalic eItalic)
 
static ImplFontAttrs lcl_IsCJKFont (const OUString &rFontName)
 
constexpr uint32_t featureCode (const char sFeature[4])
 

Variables

const std::vector< std::pair< OUString, OUString > > aMetricCompatibleMap
 
constexpr const char FeaturePrefix = ':'
 
constexpr const char FeatureSeparator = '&'
 

Detailed Description

A PhysicalFontFaceCollection is created by a PhysicalFontCollection and becomes invalid when original PhysicalFontCollection is modified.

Enumeration Type Documentation

Enumerator
BOOL 
ENUM 

Definition at line 28 of file Feature.hxx.

Enumerator
OpenType 
Graphite 

Definition at line 34 of file Feature.hxx.

Enumerator
NONE 
Scalable 
Symbol 
NoneSymbol 
Light 
Bold 
Normal 
NoneItalic 
Italic 

Definition at line 34 of file PhysicalFontFamily.hxx.

Function Documentation

static int vcl::font::FamilyNameMatchValue ( FontSelectPattern const &  rFSP,
std::u16string_view  sFontFamily 
)
static
constexpr uint32_t vcl::font::featureCode ( const char  sFeature[4])

Definition at line 20 of file Feature.hxx.

References U.

Referenced by vcl::font::OpenTypeFeatureDefinitionListPrivate::init().

VCL_DLLPUBLIC OUString vcl::font::featureCodeAsString ( uint32_t  nFeature)

Definition at line 19 of file Feature.cxx.

Referenced by vcl::font::FeatureDefinition::getDescription().

static bool vcl::font::FindMetricCompatibleFont ( FontSelectPattern rFontSelData)
static
void vcl::font::ImplFontSubstitute ( OUString &  rFontName)
static int vcl::font::ItalicMatchValue ( FontSelectPattern const &  rFSP,
FontItalic  eItalic 
)
static
static ImplFontAttrs vcl::font::lcl_IsCJKFont ( const OUString &  rFontName)
static
static int vcl::font::PitchMatchValue ( FontSelectPattern const &  rFSP,
FontPitch  ePitch 
)
static
static int vcl::font::PreferNormalFontWidthMatchValue ( FontWidth  eWidthType)
static
static int vcl::font::StyleNameMatchValue ( FontMatchStatus const &  rStatus,
OUString const &  rStyle 
)
static
VCL_DLLPUBLIC OUString vcl::font::trimFontNameFeatures ( OUString const &  rFontName)

Definition at line 16 of file FeatureParser.cxx.

References FeaturePrefix.

static int vcl::font::WeightMatchValue ( FontSelectPattern const &  rFSP,
FontWeight  eWeight 
)
static

Variable Documentation

const std::vector<std::pair<OUString, OUString> > vcl::font::aMetricCompatibleMap
Initial value:
=
{
{ "Times New Roman", "Liberation Serif" },
{ "Arial", "Liberation Sans" },
{ "Arial Narrow", "Liberation Sans Narrow" },
{ "Courier New", "Liberation Mono" },
{ "Cambria", "Caladea" },
{ "Calibri", "Carlito" },
}

Definition at line 911 of file PhysicalFontCollection.cxx.

constexpr const char vcl::font::FeaturePrefix = ':'
constexpr const char vcl::font::FeatureSeparator = '&'

Definition at line 24 of file FeatureParser.hxx.

Referenced by vcl::font::FeatureParser::FeatureParser().