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
 
void SetHFONT (HFONT hFont)
 
const WinFontFaceGetFontFace () const
 
bool CacheGlyphToAtlas (HDC hDC, HFONT hFont, int nGlyphIndex, SalGraphics &rGraphics, const GenericSalLayout &rLayout)
 
OpenGLGlyphCacheGetOpenGLGlyphCache ()
 
bool GetGlyphOutline (sal_GlyphId, basegfx::B2DPolyPolygon &, bool) const override
 
- Public Member Functions inherited from LogicalFontInstance
virtual ~LogicalFontInstance () override
 
void AddFallbackForUnicode (sal_UCS4, FontWeight eWeight, const OUString &rFontName)
 
bool GetFallbackForUnicode (sal_UCS4, FontWeight eWeight, OUString *pFontName) const
 
void IgnoreFallbackForUnicode (sal_UCS4, FontWeight eWeight, const OUString &rFontName)
 
hb_font_t * GetHbFont ()
 
void SetAverageWidthFactor (double nFactor)
 
double GetAverageWidthFactor () const
 
const FontSelectPatternGetFontSelectPattern () const
 
const PhysicalFontFaceGetFontFace () const
 
const ImplFontCacheGetFontCache () const
 
bool GetGlyphBoundRect (sal_GlyphId, tools::Rectangle &, bool) const
 
int GetKashidaWidth ()
 
void GetScale (double *nXScale, double *nYScale)
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Member Functions

 WinFontInstance (const WinFontFace &, const 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
 
OpenGLGlyphCache maOpenGLGlyphCache
 

Friends

rtl::Reference< LogicalFontInstanceWinFontFace::CreateFontInstance (const 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 voidoperator new (std::size_t nSize)
 
static voidoperator 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 ConvertCharmpConversion
 
long mnLineHeight
 
short mnOwnOrientation
 
short mnOrientation
 
bool mbInit
 
- Protected Member Functions inherited from LogicalFontInstance
 LogicalFontInstance (const PhysicalFontFace &, const FontSelectPattern &)
 
void ReleaseHbFont ()
 
- 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 146 of file winlayout.hxx.

Constructor & Destructor Documentation

WinFontInstance::~WinFontInstance ( )
override
WinFontInstance::WinFontInstance ( const WinFontFace ,
const FontSelectPattern  
)
explicitprivate

Member Function Documentation

bool WinFontInstance::CacheGlyphToAtlas ( HDC  hDC,
HFONT  hFont,
int  nGlyphIndex,
SalGraphics rGraphics,
const GenericSalLayout rLayout 
)
const WinFontFace* WinFontInstance::GetFontFace ( ) const
inline

Definition at line 166 of file winlayout.hxx.

References LogicalFontInstance::GetFontFace().

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

Implements LogicalFontInstance.

WinSalGraphics* WinFontInstance::GetGraphics ( ) const
inline

Definition at line 157 of file winlayout.hxx.

References m_pGraphics.

HFONT WinFontInstance::GetHFONT ( ) const
inline

Definition at line 159 of file winlayout.hxx.

References m_hFont.

float WinFontInstance::getHScale ( ) const
OpenGLGlyphCache& WinFontInstance::GetOpenGLGlyphCache ( )
inline

Definition at line 169 of file winlayout.hxx.

References maOpenGLGlyphCache.

float WinFontInstance::GetScale ( ) const
inline

Definition at line 160 of file winlayout.hxx.

References m_fScale.

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

Implements LogicalFontInstance.

hb_font_t* WinFontInstance::ImplInitHbFont ( )
overrideprivatevirtual

Reimplemented from LogicalFontInstance.

void WinFontInstance::SetGraphics ( WinSalGraphics )
void WinFontInstance::SetHFONT ( HFONT  hFont)
inline

Definition at line 164 of file winlayout.hxx.

References m_hFont.

Friends And Related Function Documentation

Member Data Documentation

float WinFontInstance::m_fScale
private

Definition at line 181 of file winlayout.hxx.

Referenced by GetScale().

HFONT WinFontInstance::m_hFont
private

Definition at line 180 of file winlayout.hxx.

Referenced by GetHFONT(), and SetHFONT().

WinSalGraphics* WinFontInstance::m_pGraphics
private

Definition at line 179 of file winlayout.hxx.

Referenced by GetGraphics().

OpenGLGlyphCache WinFontInstance::maOpenGLGlyphCache
private

Definition at line 182 of file winlayout.hxx.

Referenced by GetOpenGLGlyphCache().


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