LibreOffice Module vcl (master) 1
Public Member Functions | Private Attributes | List of all members
WinFontFace Class Referencefinal

#include <salgdi.h>

Inheritance diagram for WinFontFace:
[legend]
Collaboration diagram for WinFontFace:
[legend]

Public Member Functions

 WinFontFace (const ENUMLOGFONTEXW &, const NEWTEXTMETRICW &)
 
 ~WinFontFace () override
 
rtl::Reference< LogicalFontInstanceCreateFontInstance (const vcl::font::FontSelectPattern &) const override
 
sal_IntPtr GetFontId () const override
 
void SetFontId (sal_IntPtr nId)
 
BYTE GetCharSet () const
 
BYTE GetPitchAndFamily () const
 
hb_blob_t * GetHbTable (hb_tag_t nTag) const override
 
const std::vector< hb_variation_t > & GetVariations (const LogicalFontInstance &) const override
 
- Public Member Functions inherited from vcl::font::PhysicalFontFace
 ~PhysicalFontFace ()
 
virtual rtl::Reference< LogicalFontInstanceCreateFontInstance (const vcl::font::FontSelectPattern &) const =0
 
virtual sal_IntPtr GetFontId () const =0
 
virtual FontCharMapRef GetFontCharMap () const
 
virtual bool GetFontCapabilities (vcl::FontCapabilities &) const
 
RawFontData GetRawFontData (uint32_t) const
 
bool IsBetterMatch (const vcl::font::FontSelectPattern &, FontMatchStatus &) const
 
sal_Int32 CompareIgnoreSize (const PhysicalFontFace &) const
 
bool CreateFontSubset (std::vector< sal_uInt8 > &, const sal_GlyphId *, const sal_uInt8 *, const int, FontSubsetInfo &) const
 
bool IsColorFont () const
 
bool HasColorLayers () const
 
std::vector< ColorLayerGetGlyphColorLayers (sal_GlyphId) const
 
const std::vector< ColorPalette > & GetColorPalettes () const
 
bool HasColorBitmaps () const
 
RawFontData GetGlyphColorBitmap (sal_GlyphId, tools::Rectangle &) const
 
OString GetGlyphName (sal_GlyphId, bool=false) const
 
uint32_t UnitsPerEm () const
 
OUString GetName (NameID, const LanguageTag &) const
 
OUString GetName (NameID aNameID) const
 
virtual hb_face_t * GetHbFace () const
 
virtual hb_blob_t * GetHbTable (hb_tag_t) const
 
virtual const std::vector< hb_variation_t > & GetVariations (const LogicalFontInstance &) const
 
- Public Member Functions inherited from FontAttributes
 FontAttributes ()
 
const OUString & GetFamilyName () const
 
FontFamily GetFamilyType () const
 
const OUString & GetStyleName () const
 
FontWeight GetWeight () const
 
FontItalic GetItalic () const
 
FontPitch GetPitch () const
 
FontWidth GetWidthType () const
 
bool IsMicrosoftSymbolEncoded () const
 
void SetFamilyName (const OUString &sFamilyName)
 
void SetStyleName (const OUString &sStyleName)
 
void SetFamilyType (const FontFamily eFontFamily)
 
void SetPitch (const FontPitch ePitch)
 
void SetItalic (const FontItalic eItalic)
 
void SetWeight (const FontWeight eWeight)
 
void SetWidthType (const FontWidth eWidthType)
 
void SetMicrosoftSymbolEncoded (const bool)
 
bool CompareDeviceIndependentFontAttributes (const FontAttributes &rOther) const
 
int GetQuality () const
 
const OUString & GetMapNames () const
 
void SetQuality (int nQuality)
 
void IncreaseQualityBy (int nQualityAmount)
 
void AddMapName (std::u16string_view)
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Attributes

sal_IntPtr mnId
 
BYTE meWinCharSet
 
BYTE mnPitchAndFamily
 
LOGFONTW maLogFont
 
sal::systools::COMReference< IDWriteFontFace > mxDWFontFace
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Member Functions inherited from vcl::font::PhysicalFontFace
 PhysicalFontFace (const FontAttributes &)
 
hb_font_t * GetHbUnscaledFont () const
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from vcl::font::PhysicalFontFace
hb_face_t * mpHbFace
 
hb_font_t * mpHbUnscaledFont
 
FontCharMapRef mxCharMap
 
std::optional< vcl::FontCapabilitiesmxFontCapabilities
 
std::optional< std::vector< ColorPalette > > mxColorPalettes
 
std::optional< std::vector< hb_variation_t > > mxVariations
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 62 of file win/salgdi.h.

Constructor & Destructor Documentation

◆ WinFontFace()

WinFontFace::WinFontFace ( const ENUMLOGFONTEXW &  ,
const NEWTEXTMETRICW &   
)
explicit

◆ ~WinFontFace()

WinFontFace::~WinFontFace ( )
override

Member Function Documentation

◆ CreateFontInstance()

rtl::Reference< LogicalFontInstance > WinFontFace::CreateFontInstance ( const vcl::font::FontSelectPattern ) const
overridevirtual

◆ GetCharSet()

BYTE WinFontFace::GetCharSet ( ) const
inline

Definition at line 72 of file win/salgdi.h.

References meWinCharSet.

◆ GetFontId()

sal_IntPtr WinFontFace::GetFontId ( ) const
overridevirtual

◆ GetHbTable()

hb_blob_t * WinFontFace::GetHbTable ( hb_tag_t  nTag) const
overridevirtual

Reimplemented from vcl::font::PhysicalFontFace.

◆ GetPitchAndFamily()

BYTE WinFontFace::GetPitchAndFamily ( ) const
inline

Definition at line 73 of file win/salgdi.h.

References mnPitchAndFamily.

◆ GetVariations()

const std::vector< hb_variation_t > & WinFontFace::GetVariations ( const LogicalFontInstance ) const
overridevirtual

Reimplemented from vcl::font::PhysicalFontFace.

◆ SetFontId()

void WinFontFace::SetFontId ( sal_IntPtr  nId)
inline

Definition at line 70 of file win/salgdi.h.

References mnId, and nId.

Member Data Documentation

◆ maLogFont

LOGFONTW WinFontFace::maLogFont
private

Definition at line 84 of file win/salgdi.h.

◆ meWinCharSet

BYTE WinFontFace::meWinCharSet
private

Definition at line 82 of file win/salgdi.h.

Referenced by GetCharSet().

◆ mnId

sal_IntPtr WinFontFace::mnId
private

Definition at line 80 of file win/salgdi.h.

Referenced by SetFontId().

◆ mnPitchAndFamily

BYTE WinFontFace::mnPitchAndFamily
private

Definition at line 83 of file win/salgdi.h.

Referenced by GetPitchAndFamily().

◆ mxDWFontFace

sal::systools::COMReference<IDWriteFontFace> WinFontFace::mxDWFontFace
mutableprivate

Definition at line 85 of file win/salgdi.h.


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