LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
WinFontInstance Class Reference

#include <winlayout.hxx>

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

Public Member Functions

 ~WinFontInstance () override
 
bool hasHScale () const
 
float getHScale () const
 
void SetGraphics (WinSalGraphics *)
 
WinSalGraphicsGetGraphics () const
 
HFONT GetHFONT () const
 
float GetScale () const
 
bool IsCJKVerticalFont () const
 
sal_Int32 GetTmDescent () const
 
const WinFontFaceGetFontFace () const
 
WinFontFaceGetFontFace ()
 
bool GetGlyphOutline (sal_GlyphId, basegfx::B2DPolyPolygon &, bool) const override
 
- Public Member Functions inherited from LogicalFontInstance
virtual ~LogicalFontInstance () override
 
void AddFallbackForUnicode (sal_UCS4 cChar, FontWeight eWeight, const OUString &rFontName, bool bEmbolden, const ItalicMatrix &rMatrix)
 
bool GetFallbackForUnicode (sal_UCS4 cInChar, FontWeight eInWeight, OUString *pOutFontName, bool *pOutEmbolden, ItalicMatrix *pOutItalicMatrix) const
 
void IgnoreFallbackForUnicode (sal_UCS4, FontWeight eWeight, std::u16string_view rFontName)
 
hb_font_t * GetHbFont ()
 
bool IsGraphiteFont ()
 
bool NeedOffsetCorrection (sal_Int32 nYOffset)
 
void SetAverageWidthFactor (double nFactor)
 
double GetAverageWidthFactor () const
 
const vcl::font::FontSelectPatternGetFontSelectPattern () const
 
const vcl::font::PhysicalFontFaceGetFontFace () const
 
vcl::font::PhysicalFontFaceGetFontFace ()
 
const ImplFontCacheGetFontCache () const
 
bool GetGlyphBoundRect (sal_GlyphId, tools::Rectangle &, bool) const
 
virtual bool GetGlyphOutline (sal_GlyphId, basegfx::B2DPolyPolygon &, bool) const =0
 
int GetKashidaWidth () const
 
void GetScale (double *nXScale, double *nYScale) const
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Member Functions

 WinFontInstance (const WinFontFace &, const vcl::font::FontSelectPattern &)
 
hb_font_t * ImplInitHbFont () override
 
bool ImplGetGlyphBoundRect (sal_GlyphId, tools::Rectangle &, bool) const override
 

Private Attributes

WinSalGraphicsm_pGraphics
 
HFONT m_hFont
 
float m_fScale
 
bool m_bIsCJKVerticalFont
 
sal_Int32 m_nTmDescent
 

Friends

rtl::Reference< LogicalFontInstanceWinFontFace::CreateFontInstance (const vcl::font::FontSelectPattern &) const
 

Additional Inherited Members

- Static Public Member Functions inherited from LogicalFontInstance
static void DecodeOpenTypeTag (const uint32_t nTableTag, char *pTagName)
 
- 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)
 
- Public Attributes inherited from LogicalFontInstance
ImplFontMetricDataRef mxFontMetric
 
const ConvertChar * mpConversion
 
tools::Long mnLineHeight
 
Degree10 mnOwnOrientation
 
Degree10 mnOrientation
 
bool mbInit
 
- Protected Member Functions inherited from LogicalFontInstance
 LogicalFontInstance (const vcl::font::PhysicalFontFace &, const vcl::font::FontSelectPattern &)
 
virtual bool ImplGetGlyphBoundRect (sal_GlyphId, tools::Rectangle &, bool) const =0
 
virtual hb_font_t * ImplInitHbFont ()
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Static Protected Member Functions inherited from LogicalFontInstance
static hb_font_t * InitHbFont (hb_face_t *pHbFace)
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 32 of file winlayout.hxx.

Constructor & Destructor Documentation

◆ ~WinFontInstance()

WinFontInstance::~WinFontInstance ( )
override

◆ WinFontInstance()

WinFontInstance::WinFontInstance ( const WinFontFace ,
const vcl::font::FontSelectPattern  
)
explicitprivate

Member Function Documentation

◆ GetFontFace() [1/2]

WinFontFace * WinFontInstance::GetFontFace ( )
inline

Definition at line 53 of file winlayout.hxx.

References LogicalFontInstance::GetFontFace().

◆ GetFontFace() [2/2]

const WinFontFace * WinFontInstance::GetFontFace ( ) const
inline

Definition at line 52 of file winlayout.hxx.

References LogicalFontInstance::GetFontFace().

◆ GetGlyphOutline()

bool WinFontInstance::GetGlyphOutline ( sal_GlyphId  ,
basegfx::B2DPolyPolygon ,
bool   
) const
overridevirtual

Implements LogicalFontInstance.

◆ GetGraphics()

WinSalGraphics * WinFontInstance::GetGraphics ( ) const
inline

Definition at line 43 of file winlayout.hxx.

References m_pGraphics.

◆ GetHFONT()

HFONT WinFontInstance::GetHFONT ( ) const
inline

Definition at line 45 of file winlayout.hxx.

References m_hFont.

◆ getHScale()

float WinFontInstance::getHScale ( ) const

◆ GetScale()

float WinFontInstance::GetScale ( ) const
inline

Definition at line 46 of file winlayout.hxx.

References m_fScale.

◆ GetTmDescent()

sal_Int32 WinFontInstance::GetTmDescent ( ) const
inline

Definition at line 50 of file winlayout.hxx.

References m_nTmDescent.

◆ hasHScale()

bool WinFontInstance::hasHScale ( ) const

◆ ImplGetGlyphBoundRect()

bool WinFontInstance::ImplGetGlyphBoundRect ( sal_GlyphId  ,
tools::Rectangle ,
bool   
) const
overrideprivatevirtual

Implements LogicalFontInstance.

◆ ImplInitHbFont()

hb_font_t * WinFontInstance::ImplInitHbFont ( )
overrideprivatevirtual

Reimplemented from LogicalFontInstance.

◆ IsCJKVerticalFont()

bool WinFontInstance::IsCJKVerticalFont ( ) const
inline

Definition at line 49 of file winlayout.hxx.

References m_bIsCJKVerticalFont.

◆ SetGraphics()

void WinFontInstance::SetGraphics ( WinSalGraphics )

Friends And Related Function Documentation

◆ WinFontFace::CreateFontInstance

Member Data Documentation

◆ m_bIsCJKVerticalFont

bool WinFontInstance::m_bIsCJKVerticalFont
private

Definition at line 66 of file winlayout.hxx.

Referenced by IsCJKVerticalFont().

◆ m_fScale

float WinFontInstance::m_fScale
private

Definition at line 65 of file winlayout.hxx.

Referenced by GetScale().

◆ m_hFont

HFONT WinFontInstance::m_hFont
private

Definition at line 64 of file winlayout.hxx.

Referenced by GetHFONT().

◆ m_nTmDescent

sal_Int32 WinFontInstance::m_nTmDescent
private

Definition at line 67 of file winlayout.hxx.

Referenced by GetTmDescent().

◆ m_pGraphics

WinSalGraphics* WinFontInstance::m_pGraphics
private

Definition at line 63 of file winlayout.hxx.

Referenced by GetGraphics().


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