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

#include <salgdi.h>

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

Public Member Functions

 ~CoreTextFont () override
 
void GetFontMetric (FontMetricDataRef const &)
 
bool GetGlyphOutline (sal_GlyphId, basegfx::B2DPolyPolygon &, bool) const override
 
CTFontRef GetCTFont () const
 
- 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
 
basegfx::B2DPolyPolygon GetGlyphOutlineUntransformed (sal_GlyphId) const
 
sal_GlyphId GetGlyphIndex (uint32_t, uint32_t=0) const
 
double GetGlyphWidth (sal_GlyphId, bool=false, bool=true) const
 
double GetKashidaWidth () const
 
void GetScale (double *nXScale, double *nYScale) const
 
bool NeedsArtificialItalic () const
 
bool NeedsArtificialBold () const
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Public Attributes

float mfFontStretch
 <1.0: font is squeezed, >1.0 font is stretched, else 1.0 More...
 
float mfFontRotation
 text rotation in radian More...
 
- Public Attributes inherited from LogicalFontInstance
FontMetricDataRef mxFontMetric
 
const ConvertChar * mpConversion
 
tools::Long mnLineHeight
 
Degree10 mnOwnOrientation
 
Degree10 mnOrientation
 
bool mbInit
 

Private Member Functions

 CoreTextFont (const CoreTextFontFace &, const vcl::font::FontSelectPattern &)
 

Private Attributes

CTFontRef mpCTFont
 

Friends

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

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 LogicalFontInstance
 LogicalFontInstance (const vcl::font::PhysicalFontFace &, const vcl::font::FontSelectPattern &)
 
hb_font_t * InitHbFont ()
 
virtual void ImplInitHbFont (hb_font_t *)
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 86 of file quartz/salgdi.h.

Constructor & Destructor Documentation

◆ ~CoreTextFont()

CoreTextFont::~CoreTextFont ( )
override

◆ CoreTextFont()

CoreTextFont::CoreTextFont ( const CoreTextFontFace ,
const vcl::font::FontSelectPattern  
)
explicitprivate

Member Function Documentation

◆ GetCTFont()

CTFontRef CoreTextFont::GetCTFont ( ) const
inline

Definition at line 96 of file quartz/salgdi.h.

References mpCTFont.

◆ GetFontMetric()

void CoreTextFont::GetFontMetric ( FontMetricDataRef const &  )

◆ GetGlyphOutline()

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

Implements LogicalFontInstance.

Friends And Related Function Documentation

◆ CoreTextFontFace::CreateFontInstance

Member Data Documentation

◆ mfFontRotation

float CoreTextFont::mfFontRotation

text rotation in radian

Definition at line 101 of file quartz/salgdi.h.

◆ mfFontStretch

float CoreTextFont::mfFontStretch

<1.0: font is squeezed, >1.0 font is stretched, else 1.0

Definition at line 99 of file quartz/salgdi.h.

◆ mpCTFont

CTFontRef CoreTextFont::mpCTFont
private

Definition at line 106 of file quartz/salgdi.h.

Referenced by GetCTFont().


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