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

#include <FontMetricData.hxx>

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

Public Member Functions

 FontMetricData (const vcl::font::FontSelectPattern &)
 
tools::Long GetWidth () const
 
Degree10 GetOrientation () const
 
void SetWidth (tools::Long nWidth)
 
void SetOrientation (Degree10 nOrientation)
 
tools::Long GetAscent () const
 
tools::Long GetDescent () const
 
tools::Long GetInternalLeading () const
 
tools::Long GetExternalLeading () const
 
int GetSlant () const
 
double GetMinKashida () const
 
tools::Long GetHangingBaseline () const
 
void SetSlant (int nSlant)
 
void SetMinKashida (double nMinKashida)
 
bool IsFullstopCentered () const
 
tools::Long GetBulletOffset () const
 
void SetFullstopCenteredFlag (bool bFullstopCentered)
 
tools::Long GetUnderlineSize () const
 
tools::Long GetUnderlineOffset () const
 
tools::Long GetBoldUnderlineSize () const
 
tools::Long GetBoldUnderlineOffset () const
 
tools::Long GetDoubleUnderlineSize () const
 
tools::Long GetDoubleUnderlineOffset1 () const
 
tools::Long GetDoubleUnderlineOffset2 () const
 
tools::Long GetWavelineUnderlineSize () const
 
tools::Long GetWavelineUnderlineOffset () const
 
tools::Long GetAboveUnderlineSize () const
 
tools::Long GetAboveUnderlineOffset () const
 
tools::Long GetAboveBoldUnderlineSize () const
 
tools::Long GetAboveBoldUnderlineOffset () const
 
tools::Long GetAboveDoubleUnderlineSize () const
 
tools::Long GetAboveDoubleUnderlineOffset1 () const
 
tools::Long GetAboveDoubleUnderlineOffset2 () const
 
tools::Long GetAboveWavelineUnderlineSize () const
 
tools::Long GetAboveWavelineUnderlineOffset () const
 
tools::Long GetStrikeoutSize () const
 
tools::Long GetStrikeoutOffset () const
 
tools::Long GetBoldStrikeoutSize () const
 
tools::Long GetBoldStrikeoutOffset () const
 
tools::Long GetDoubleStrikeoutSize () const
 
tools::Long GetDoubleStrikeoutOffset1 () const
 
tools::Long GetDoubleStrikeoutOffset2 () const
 
void ImplInitTextLineSize (const OutputDevice *pDev)
 
void ImplInitAboveTextLineSize (const OutputDevice *pDev)
 
void ImplInitFlags (const OutputDevice *pDev)
 
void ImplCalcLineSpacing (LogicalFontInstance *pFontInstance)
 
void ImplInitBaselines (LogicalFontInstance *pFontInstance)
 
- 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 SvRefBase
 SvRefBase ()
 
 SvRefBase (const SvRefBase &)
 
SvRefBaseoperator= (const SvRefBase &)
 
void RestoreNoDelete ()
 
void AddNextRef ()
 
void AddFirstRef ()
 
void ReleaseRef ()
 
unsigned int GetRefCount () const
 

Private Member Functions

bool ShouldNotUseUnderlineMetrics () const
 
bool ImplInitTextLineSizeHarfBuzz (LogicalFontInstance *pFontInstance)
 
bool ShouldUseWinMetrics (int, int, int, int, int, int) const
 

Private Attributes

tools::Long mnHeight
 
tools::Long mnWidth
 
Degree10 mnOrientation
 
tools::Long mnAscent
 
tools::Long mnDescent
 
tools::Long mnIntLeading
 
tools::Long mnExtLeading
 
int mnSlant
 
double mnMinKashida
 
tools::Long mnHangingBaseline
 
bool mbFullstopCentered
 
tools::Long mnBulletOffset
 
tools::Long mnUnderlineSize
 
tools::Long mnUnderlineOffset
 
tools::Long mnBUnderlineSize
 
tools::Long mnBUnderlineOffset
 
tools::Long mnDUnderlineSize
 
tools::Long mnDUnderlineOffset1
 
tools::Long mnDUnderlineOffset2
 
tools::Long mnWUnderlineSize
 
tools::Long mnWUnderlineOffset
 
tools::Long mnAboveUnderlineSize
 
tools::Long mnAboveUnderlineOffset
 
tools::Long mnAboveBUnderlineSize
 
tools::Long mnAboveBUnderlineOffset
 
tools::Long mnAboveDUnderlineSize
 
tools::Long mnAboveDUnderlineOffset1
 
tools::Long mnAboveDUnderlineOffset2
 
tools::Long mnAboveWUnderlineSize
 
tools::Long mnAboveWUnderlineOffset
 
tools::Long mnStrikeoutSize
 
tools::Long mnStrikeoutOffset
 
tools::Long mnBStrikeoutSize
 
tools::Long mnBStrikeoutOffset
 
tools::Long mnDStrikeoutSize
 
tools::Long mnDStrikeoutOffset1
 
tools::Long mnDStrikeoutOffset2
 

Additional Inherited Members

- Protected Member Functions inherited from SvRefBase
virtual ~SvRefBase () COVERITY_NOEXCEPT_FALSE
 

Detailed Description

Definition at line 41 of file FontMetricData.hxx.

Constructor & Destructor Documentation

◆ FontMetricData()

FontMetricData::FontMetricData ( const vcl::font::FontSelectPattern rFontSelData)
explicit

Member Function Documentation

◆ GetAboveBoldUnderlineOffset()

tools::Long FontMetricData::GetAboveBoldUnderlineOffset ( ) const
inline

Definition at line 84 of file FontMetricData.hxx.

◆ GetAboveBoldUnderlineSize()

tools::Long FontMetricData::GetAboveBoldUnderlineSize ( ) const
inline

Definition at line 83 of file FontMetricData.hxx.

◆ GetAboveDoubleUnderlineOffset1()

tools::Long FontMetricData::GetAboveDoubleUnderlineOffset1 ( ) const
inline

Definition at line 86 of file FontMetricData.hxx.

◆ GetAboveDoubleUnderlineOffset2()

tools::Long FontMetricData::GetAboveDoubleUnderlineOffset2 ( ) const
inline

Definition at line 87 of file FontMetricData.hxx.

◆ GetAboveDoubleUnderlineSize()

tools::Long FontMetricData::GetAboveDoubleUnderlineSize ( ) const
inline

Definition at line 85 of file FontMetricData.hxx.

◆ GetAboveUnderlineOffset()

tools::Long FontMetricData::GetAboveUnderlineOffset ( ) const
inline

Definition at line 82 of file FontMetricData.hxx.

◆ GetAboveUnderlineSize()

tools::Long FontMetricData::GetAboveUnderlineSize ( ) const
inline

Definition at line 81 of file FontMetricData.hxx.

◆ GetAboveWavelineUnderlineOffset()

tools::Long FontMetricData::GetAboveWavelineUnderlineOffset ( ) const
inline

Definition at line 89 of file FontMetricData.hxx.

◆ GetAboveWavelineUnderlineSize()

tools::Long FontMetricData::GetAboveWavelineUnderlineSize ( ) const
inline

Definition at line 88 of file FontMetricData.hxx.

◆ GetAscent()

tools::Long FontMetricData::GetAscent ( ) const
inline

Definition at line 54 of file FontMetricData.hxx.

◆ GetBoldStrikeoutOffset()

tools::Long FontMetricData::GetBoldStrikeoutOffset ( ) const
inline

Definition at line 93 of file FontMetricData.hxx.

◆ GetBoldStrikeoutSize()

tools::Long FontMetricData::GetBoldStrikeoutSize ( ) const
inline

Definition at line 92 of file FontMetricData.hxx.

◆ GetBoldUnderlineOffset()

tools::Long FontMetricData::GetBoldUnderlineOffset ( ) const
inline

Definition at line 75 of file FontMetricData.hxx.

◆ GetBoldUnderlineSize()

tools::Long FontMetricData::GetBoldUnderlineSize ( ) const
inline

Definition at line 74 of file FontMetricData.hxx.

◆ GetBulletOffset()

tools::Long FontMetricData::GetBulletOffset ( ) const
inline

Definition at line 67 of file FontMetricData.hxx.

◆ GetDescent()

tools::Long FontMetricData::GetDescent ( ) const
inline

Definition at line 55 of file FontMetricData.hxx.

◆ GetDoubleStrikeoutOffset1()

tools::Long FontMetricData::GetDoubleStrikeoutOffset1 ( ) const
inline

Definition at line 95 of file FontMetricData.hxx.

◆ GetDoubleStrikeoutOffset2()

tools::Long FontMetricData::GetDoubleStrikeoutOffset2 ( ) const
inline

Definition at line 96 of file FontMetricData.hxx.

◆ GetDoubleStrikeoutSize()

tools::Long FontMetricData::GetDoubleStrikeoutSize ( ) const
inline

Definition at line 94 of file FontMetricData.hxx.

◆ GetDoubleUnderlineOffset1()

tools::Long FontMetricData::GetDoubleUnderlineOffset1 ( ) const
inline

Definition at line 77 of file FontMetricData.hxx.

◆ GetDoubleUnderlineOffset2()

tools::Long FontMetricData::GetDoubleUnderlineOffset2 ( ) const
inline

Definition at line 78 of file FontMetricData.hxx.

◆ GetDoubleUnderlineSize()

tools::Long FontMetricData::GetDoubleUnderlineSize ( ) const
inline

Definition at line 76 of file FontMetricData.hxx.

◆ GetExternalLeading()

tools::Long FontMetricData::GetExternalLeading ( ) const
inline

Definition at line 57 of file FontMetricData.hxx.

◆ GetHangingBaseline()

tools::Long FontMetricData::GetHangingBaseline ( ) const
inline

Definition at line 60 of file FontMetricData.hxx.

◆ GetInternalLeading()

tools::Long FontMetricData::GetInternalLeading ( ) const
inline

Definition at line 56 of file FontMetricData.hxx.

◆ GetMinKashida()

double FontMetricData::GetMinKashida ( ) const
inline

Definition at line 59 of file FontMetricData.hxx.

◆ GetOrientation()

Degree10 FontMetricData::GetOrientation ( ) const
inline

Definition at line 48 of file FontMetricData.hxx.

◆ GetSlant()

int FontMetricData::GetSlant ( ) const
inline

Definition at line 58 of file FontMetricData.hxx.

◆ GetStrikeoutOffset()

tools::Long FontMetricData::GetStrikeoutOffset ( ) const
inline

Definition at line 91 of file FontMetricData.hxx.

◆ GetStrikeoutSize()

tools::Long FontMetricData::GetStrikeoutSize ( ) const
inline

Definition at line 90 of file FontMetricData.hxx.

◆ GetUnderlineOffset()

tools::Long FontMetricData::GetUnderlineOffset ( ) const
inline

Definition at line 73 of file FontMetricData.hxx.

◆ GetUnderlineSize()

tools::Long FontMetricData::GetUnderlineSize ( ) const
inline

Definition at line 72 of file FontMetricData.hxx.

◆ GetWavelineUnderlineOffset()

tools::Long FontMetricData::GetWavelineUnderlineOffset ( ) const
inline

Definition at line 80 of file FontMetricData.hxx.

◆ GetWavelineUnderlineSize()

tools::Long FontMetricData::GetWavelineUnderlineSize ( ) const
inline

Definition at line 79 of file FontMetricData.hxx.

◆ GetWidth()

tools::Long FontMetricData::GetWidth ( ) const
inline

Definition at line 47 of file FontMetricData.hxx.

References mnWidth.

◆ ImplCalcLineSpacing()

void FontMetricData::ImplCalcLineSpacing ( LogicalFontInstance pFontInstance)

◆ ImplInitAboveTextLineSize()

void FontMetricData::ImplInitAboveTextLineSize ( const OutputDevice pDev)

◆ ImplInitBaselines()

void FontMetricData::ImplInitBaselines ( LogicalFontInstance pFontInstance)

◆ ImplInitFlags()

void FontMetricData::ImplInitFlags ( const OutputDevice pDev)

◆ ImplInitTextLineSize()

void FontMetricData::ImplInitTextLineSize ( const OutputDevice pDev)

◆ ImplInitTextLineSizeHarfBuzz()

bool FontMetricData::ImplInitTextLineSizeHarfBuzz ( LogicalFontInstance pFontInstance)
private

◆ IsFullstopCentered()

bool FontMetricData::IsFullstopCentered ( ) const
inline

Definition at line 66 of file FontMetricData.hxx.

◆ SetFullstopCenteredFlag()

void FontMetricData::SetFullstopCenteredFlag ( bool  bFullstopCentered)
inline

Definition at line 69 of file FontMetricData.hxx.

Referenced by ImplInitFlags().

◆ SetMinKashida()

void FontMetricData::SetMinKashida ( double  nMinKashida)
inline

Definition at line 63 of file FontMetricData.hxx.

◆ SetOrientation()

void FontMetricData::SetOrientation ( Degree10  nOrientation)
inline

Definition at line 51 of file FontMetricData.hxx.

◆ SetSlant()

void FontMetricData::SetSlant ( int  nSlant)
inline

Definition at line 62 of file FontMetricData.hxx.

◆ SetWidth()

void FontMetricData::SetWidth ( tools::Long  nWidth)
inline

Definition at line 50 of file FontMetricData.hxx.

References mnWidth.

◆ ShouldNotUseUnderlineMetrics()

bool FontMetricData::ShouldNotUseUnderlineMetrics ( ) const
private

◆ ShouldUseWinMetrics()

bool FontMetricData::ShouldUseWinMetrics ( int  nAscent,
int  nDescent,
int  nTypoAscent,
int  nTypoDescent,
int  nWinAscent,
int  nWinDescent 
) const
private

Member Data Documentation

◆ mbFullstopCentered

bool FontMetricData::mbFullstopCentered
private

Definition at line 124 of file FontMetricData.hxx.

◆ mnAboveBUnderlineOffset

tools::Long FontMetricData::mnAboveBUnderlineOffset
private

Definition at line 140 of file FontMetricData.hxx.

Referenced by ImplInitAboveTextLineSize().

◆ mnAboveBUnderlineSize

tools::Long FontMetricData::mnAboveBUnderlineSize
private

Definition at line 139 of file FontMetricData.hxx.

Referenced by ImplInitAboveTextLineSize().

◆ mnAboveDUnderlineOffset1

tools::Long FontMetricData::mnAboveDUnderlineOffset1
private

Definition at line 142 of file FontMetricData.hxx.

Referenced by ImplInitAboveTextLineSize().

◆ mnAboveDUnderlineOffset2

tools::Long FontMetricData::mnAboveDUnderlineOffset2
private

Definition at line 143 of file FontMetricData.hxx.

Referenced by ImplInitAboveTextLineSize().

◆ mnAboveDUnderlineSize

tools::Long FontMetricData::mnAboveDUnderlineSize
private

Definition at line 141 of file FontMetricData.hxx.

Referenced by ImplInitAboveTextLineSize().

◆ mnAboveUnderlineOffset

tools::Long FontMetricData::mnAboveUnderlineOffset
private

Definition at line 138 of file FontMetricData.hxx.

Referenced by ImplInitAboveTextLineSize().

◆ mnAboveUnderlineSize

tools::Long FontMetricData::mnAboveUnderlineSize
private

Definition at line 137 of file FontMetricData.hxx.

Referenced by ImplInitAboveTextLineSize().

◆ mnAboveWUnderlineOffset

tools::Long FontMetricData::mnAboveWUnderlineOffset
private

Definition at line 145 of file FontMetricData.hxx.

Referenced by ImplInitAboveTextLineSize().

◆ mnAboveWUnderlineSize

tools::Long FontMetricData::mnAboveWUnderlineSize
private

Definition at line 144 of file FontMetricData.hxx.

Referenced by ImplInitAboveTextLineSize().

◆ mnAscent

tools::Long FontMetricData::mnAscent
private

◆ mnBStrikeoutOffset

tools::Long FontMetricData::mnBStrikeoutOffset
private

Definition at line 149 of file FontMetricData.hxx.

Referenced by ImplInitTextLineSize(), and ImplInitTextLineSizeHarfBuzz().

◆ mnBStrikeoutSize

tools::Long FontMetricData::mnBStrikeoutSize
private

Definition at line 148 of file FontMetricData.hxx.

Referenced by ImplInitTextLineSize(), and ImplInitTextLineSizeHarfBuzz().

◆ mnBulletOffset

tools::Long FontMetricData::mnBulletOffset
private

Definition at line 125 of file FontMetricData.hxx.

Referenced by ImplInitTextLineSize().

◆ mnBUnderlineOffset

tools::Long FontMetricData::mnBUnderlineOffset
private

Definition at line 131 of file FontMetricData.hxx.

Referenced by ImplInitTextLineSize(), and ImplInitTextLineSizeHarfBuzz().

◆ mnBUnderlineSize

tools::Long FontMetricData::mnBUnderlineSize
private

◆ mnDescent

tools::Long FontMetricData::mnDescent
private

Definition at line 116 of file FontMetricData.hxx.

Referenced by ImplCalcLineSpacing(), and ImplInitTextLineSize().

◆ mnDStrikeoutOffset1

tools::Long FontMetricData::mnDStrikeoutOffset1
private

Definition at line 151 of file FontMetricData.hxx.

Referenced by ImplInitTextLineSize(), and ImplInitTextLineSizeHarfBuzz().

◆ mnDStrikeoutOffset2

tools::Long FontMetricData::mnDStrikeoutOffset2
private

Definition at line 152 of file FontMetricData.hxx.

Referenced by ImplInitTextLineSize(), and ImplInitTextLineSizeHarfBuzz().

◆ mnDStrikeoutSize

tools::Long FontMetricData::mnDStrikeoutSize
private

Definition at line 150 of file FontMetricData.hxx.

Referenced by ImplInitTextLineSize(), and ImplInitTextLineSizeHarfBuzz().

◆ mnDUnderlineOffset1

tools::Long FontMetricData::mnDUnderlineOffset1
private

Definition at line 133 of file FontMetricData.hxx.

Referenced by ImplInitTextLineSize(), and ImplInitTextLineSizeHarfBuzz().

◆ mnDUnderlineOffset2

tools::Long FontMetricData::mnDUnderlineOffset2
private

Definition at line 134 of file FontMetricData.hxx.

Referenced by ImplInitTextLineSize(), and ImplInitTextLineSizeHarfBuzz().

◆ mnDUnderlineSize

tools::Long FontMetricData::mnDUnderlineSize
private

◆ mnExtLeading

tools::Long FontMetricData::mnExtLeading
private

Definition at line 118 of file FontMetricData.hxx.

Referenced by ImplCalcLineSpacing().

◆ mnHangingBaseline

tools::Long FontMetricData::mnHangingBaseline
private

Definition at line 121 of file FontMetricData.hxx.

Referenced by ImplInitBaselines().

◆ mnHeight

tools::Long FontMetricData::mnHeight
private

Definition at line 110 of file FontMetricData.hxx.

Referenced by ImplCalcLineSpacing().

◆ mnIntLeading

tools::Long FontMetricData::mnIntLeading
private

◆ mnMinKashida

double FontMetricData::mnMinKashida
private

Definition at line 120 of file FontMetricData.hxx.

◆ mnOrientation

Degree10 FontMetricData::mnOrientation
private

Definition at line 112 of file FontMetricData.hxx.

◆ mnSlant

int FontMetricData::mnSlant
private

Definition at line 119 of file FontMetricData.hxx.

◆ mnStrikeoutOffset

tools::Long FontMetricData::mnStrikeoutOffset
private

Definition at line 147 of file FontMetricData.hxx.

Referenced by ImplInitTextLineSize(), and ImplInitTextLineSizeHarfBuzz().

◆ mnStrikeoutSize

tools::Long FontMetricData::mnStrikeoutSize
private

Definition at line 146 of file FontMetricData.hxx.

Referenced by ImplInitTextLineSize(), and ImplInitTextLineSizeHarfBuzz().

◆ mnUnderlineOffset

tools::Long FontMetricData::mnUnderlineOffset
private

Definition at line 129 of file FontMetricData.hxx.

Referenced by ImplInitTextLineSize(), and ImplInitTextLineSizeHarfBuzz().

◆ mnUnderlineSize

tools::Long FontMetricData::mnUnderlineSize
private

◆ mnWidth

tools::Long FontMetricData::mnWidth
private

Definition at line 111 of file FontMetricData.hxx.

◆ mnWUnderlineOffset

tools::Long FontMetricData::mnWUnderlineOffset
private

Definition at line 136 of file FontMetricData.hxx.

Referenced by ImplInitTextLineSize(), and ImplInitTextLineSizeHarfBuzz().

◆ mnWUnderlineSize

tools::Long FontMetricData::mnWUnderlineSize
private

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