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

#include <metric.hxx>

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

Public Member Functions

 FontMetric ()
 
 FontMetric (const FontMetric &)
 
 FontMetric (vcl::font::PhysicalFontFace const &rFace)
 
 ~FontMetric () override
 
tools::Long GetAscent () const
 
tools::Long GetDescent () const
 
tools::Long GetInternalLeading () const
 
tools::Long GetExternalLeading () const
 
tools::Long GetLineHeight () const
 
tools::Long GetSlant () const
 
tools::Long GetBulletOffset () const
 
tools::Long GetHangingBaseline () const
 
void SetAscent (tools::Long nAscent)
 
void SetDescent (tools::Long nDescent)
 
void SetExternalLeading (tools::Long nExtLeading)
 
void SetInternalLeading (tools::Long nIntLeading)
 
void SetLineHeight (tools::Long nHeight)
 
void SetSlant (tools::Long nSlant)
 
void SetBulletOffset (tools::Long nOffset)
 
void SetHangingBaseline (tools::Long nBaseline)
 
bool IsFullstopCentered () const
 
void SetFullstopCenteredFlag (bool bCentered)
 
FontMetricoperator= (const FontMetric &rMetric)
 
FontMetricoperator= (FontMetric &&rMetric)
 
bool operator== (const FontMetric &rMetric) const
 
bool operator!= (const FontMetric &rMetric) const
 
bool EqualIgnoreColor (const FontMetric &) const
 
size_t GetHashValueIgnoreColor () const
 
- Public Member Functions inherited from vcl::Font
 Font ()
 
 Font (const Font &)
 
 Font (Font &&) noexcept
 
 Font (const OUString &rFamilyName, const Size &)
 
 Font (const OUString &rFamilyName, const OUString &rStyleName, const Size &)
 
 Font (FontFamily eFamily, const Size &)
 
virtual ~Font ()
 
const OUString & GetFamilyName () const
 
FontFamily GetFamilyType ()
 
FontFamily GetFamilyType () const
 
const OUString & GetStyleName () const
 
FontWeight GetWeight ()
 
FontWeight GetWeight () const
 
FontItalic GetItalic ()
 
FontItalic GetItalic () const
 
FontPitch GetPitch ()
 
FontPitch GetPitch () const
 
FontWidth GetWidthType ()
 
FontWidth GetWidthType () const
 
TextAlign GetAlignment () const
 
rtl_TextEncoding GetCharSet () const
 
FontEmphasisMark GetEmphasisMarkStyle () const
 
void SetFamilyName (const OUString &rFamilyName)
 
void SetStyleName (const OUString &rStyleName)
 
void SetFamily (FontFamily)
 
void SetPitch (FontPitch ePitch)
 
void SetItalic (FontItalic)
 
void SetWeight (FontWeight)
 
void SetWidthType (FontWidth)
 
void SetAlignment (TextAlign)
 
void SetCharSet (rtl_TextEncoding)
 
int GetQuality () const
 
void SetQuality (int)
 
void IncreaseQualityBy (int)
 
void DecreaseQualityBy (int)
 
const ColorGetColor () const
 
const ColorGetFillColor () const
 
bool IsTransparent () const
 
void SetColor (const Color &)
 
void SetFillColor (const Color &)
 
void SetTransparent (bool bTransparent)
 
void SetFontSize (const Size &)
 
const SizeGetFontSize () const
 
void SetFontHeight (tools::Long nHeight)
 
tools::Long GetFontHeight () const
 
void SetAverageFontWidth (tools::Long nWidth)
 
tools::Long GetAverageFontWidth () const
 
tools::Long GetOrCalculateAverageFontWidth () const
 
void SetLanguageTag (const LanguageTag &)
 
const LanguageTagGetLanguageTag () const
 
void SetCJKContextLanguageTag (const LanguageTag &)
 
const LanguageTagGetCJKContextLanguageTag () const
 
void SetLanguage (LanguageType)
 
LanguageType GetLanguage () const
 
void SetCJKContextLanguage (LanguageType)
 
LanguageType GetCJKContextLanguage () const
 
void SetOrientation (Degree10 nLineOrientation)
 
Degree10 GetOrientation () const
 
void SetVertical (bool bVertical)
 
bool IsVertical () const
 
void SetKerning (FontKerning nKerning)
 
FontKerning GetKerning () const
 
bool IsKerning () const
 
void SetFixKerning (const short nSpacing)
 
short GetFixKerning () const
 
bool IsFixKerning () const
 
void SetOutline (bool bOutline)
 
bool IsOutline () const
 
void SetShadow (bool bShadow)
 
bool IsShadow () const
 
void SetRelief (FontRelief)
 
FontRelief GetRelief () const
 
void SetUnderline (FontLineStyle)
 
FontLineStyle GetUnderline () const
 
void SetOverline (FontLineStyle)
 
FontLineStyle GetOverline () const
 
void SetStrikeout (FontStrikeout)
 
FontStrikeout GetStrikeout () const
 
void SetEmphasisMark (FontEmphasisMark)
 
FontEmphasisMark GetEmphasisMark () const
 
void SetWordLineMode (bool bWordLine)
 
bool IsWordLineMode () const
 
void Merge (const Font &rFont)
 
void GetFontAttributes (FontAttributes &rAttrs) const
 
Fontoperator= (const Font &)
 
Fontoperator= (Font &&) noexcept
 
bool operator== (const Font &) const
 
bool operator!= (const Font &rFont) const
 
bool IsSameInstance (const Font &) const
 
bool EqualIgnoreColor (const Font &) const
 
size_t GetHashValueIgnoreColor () const
 
bool IsUnderlineAbove () const
 

Private Member Functions

bool EqualNoBase (const FontMetric &) const
 
size_t GetHashValueNoBase () const
 

Private Attributes

tools::Long mnAscent
 
tools::Long mnDescent
 
tools::Long mnIntLeading
 
tools::Long mnExtLeading
 
tools::Long mnLineHeight
 
tools::Long mnSlant
 
tools::Long mnBulletOffset
 
tools::Long mnHangingBaseline
 
bool mbFullstopCentered
 

Additional Inherited Members

- Public Types inherited from vcl::Font
typedef o3tl::cow_wrapper< ImplFontImplType
 
- Static Public Member Functions inherited from vcl::Font
static Font identifyFont (const void *pBuffer, sal_uInt32 nLen)
 

Detailed Description

Definition at line 35 of file metric.hxx.

Constructor & Destructor Documentation

◆ FontMetric() [1/3]

FontMetric::FontMetric ( )
explicit

Definition at line 45 of file fontmetric.cxx.

◆ FontMetric() [2/3]

FontMetric::FontMetric ( const FontMetric )
default

◆ FontMetric() [3/3]

FontMetric::FontMetric ( vcl::font::PhysicalFontFace const &  rFace)

◆ ~FontMetric()

FontMetric::~FontMetric ( )
override

Definition at line 74 of file fontmetric.cxx.

Member Function Documentation

◆ EqualIgnoreColor()

bool FontMetric::EqualIgnoreColor ( const FontMetric r) const

Definition at line 107 of file fontmetric.cxx.

References EqualNoBase().

◆ EqualNoBase()

bool FontMetric::EqualNoBase ( const FontMetric r) const
private

Definition at line 82 of file fontmetric.cxx.

References mbFullstopCentered, mnAscent, mnDescent, mnExtLeading, mnIntLeading, and mnSlant.

Referenced by EqualIgnoreColor(), and operator==().

◆ GetAscent()

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

◆ GetBulletOffset()

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

Definition at line 49 of file metric.hxx.

◆ GetDescent()

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

◆ GetExternalLeading()

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

Definition at line 46 of file metric.hxx.

◆ GetHangingBaseline()

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

Definition at line 50 of file metric.hxx.

◆ GetHashValueIgnoreColor()

size_t FontMetric::GetHashValueIgnoreColor ( ) const

◆ GetHashValueNoBase()

size_t FontMetric::GetHashValueNoBase ( ) const
private

◆ GetInternalLeading()

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

Definition at line 45 of file metric.hxx.

◆ GetLineHeight()

tools::Long FontMetric::GetLineHeight ( ) const
inline

Definition at line 47 of file metric.hxx.

Referenced by vcl::PDFWriterImpl::drawLayout().

◆ GetSlant()

tools::Long FontMetric::GetSlant ( ) const
inline

Definition at line 48 of file metric.hxx.

◆ IsFullstopCentered()

bool FontMetric::IsFullstopCentered ( ) const
inline

Definition at line 61 of file metric.hxx.

◆ operator!=()

bool FontMetric::operator!= ( const FontMetric rMetric) const
inline

Definition at line 69 of file metric.hxx.

References vcl::Font::operator==().

◆ operator=() [1/2]

FontMetric & FontMetric::operator= ( const FontMetric rMetric)
default

◆ operator=() [2/2]

FontMetric & FontMetric::operator= ( FontMetric &&  rMetric)
default

◆ operator==()

bool FontMetric::operator== ( const FontMetric rMetric) const

Definition at line 100 of file fontmetric.cxx.

References EqualNoBase().

◆ SetAscent()

void FontMetric::SetAscent ( tools::Long  nAscent)
inline

Definition at line 52 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

◆ SetBulletOffset()

void FontMetric::SetBulletOffset ( tools::Long  nOffset)
inline

Definition at line 58 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

◆ SetDescent()

void FontMetric::SetDescent ( tools::Long  nDescent)
inline

Definition at line 53 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

◆ SetExternalLeading()

void FontMetric::SetExternalLeading ( tools::Long  nExtLeading)
inline

Definition at line 54 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

◆ SetFullstopCenteredFlag()

void FontMetric::SetFullstopCenteredFlag ( bool  bCentered)
inline

Definition at line 63 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

◆ SetHangingBaseline()

void FontMetric::SetHangingBaseline ( tools::Long  nBaseline)
inline

Definition at line 59 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

◆ SetInternalLeading()

void FontMetric::SetInternalLeading ( tools::Long  nIntLeading)
inline

Definition at line 55 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

◆ SetLineHeight()

void FontMetric::SetLineHeight ( tools::Long  nHeight)
inline

Definition at line 56 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

◆ SetSlant()

void FontMetric::SetSlant ( tools::Long  nSlant)
inline

Definition at line 57 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

Member Data Documentation

◆ mbFullstopCentered

bool FontMetric::mbFullstopCentered
private

Definition at line 89 of file metric.hxx.

Referenced by EqualNoBase(), and GetHashValueNoBase().

◆ mnAscent

tools::Long FontMetric::mnAscent
private

Definition at line 80 of file metric.hxx.

Referenced by EqualNoBase(), and GetHashValueNoBase().

◆ mnBulletOffset

tools::Long FontMetric::mnBulletOffset
private

Definition at line 86 of file metric.hxx.

◆ mnDescent

tools::Long FontMetric::mnDescent
private

Definition at line 81 of file metric.hxx.

Referenced by EqualNoBase(), and GetHashValueNoBase().

◆ mnExtLeading

tools::Long FontMetric::mnExtLeading
private

Definition at line 83 of file metric.hxx.

Referenced by EqualNoBase(), and GetHashValueNoBase().

◆ mnHangingBaseline

tools::Long FontMetric::mnHangingBaseline
private

Definition at line 87 of file metric.hxx.

◆ mnIntLeading

tools::Long FontMetric::mnIntLeading
private

Definition at line 82 of file metric.hxx.

Referenced by EqualNoBase(), and GetHashValueNoBase().

◆ mnLineHeight

tools::Long FontMetric::mnLineHeight
private

Definition at line 84 of file metric.hxx.

◆ mnSlant

tools::Long FontMetric::mnSlant
private

Definition at line 85 of file metric.hxx.

Referenced by EqualNoBase(), and GetHashValueNoBase().


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