LibreOffice Module vcl (master)  1
Public 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 () override
 
long GetAscent () const
 
long GetDescent () const
 
long GetInternalLeading () const
 
long GetExternalLeading () const
 
long GetLineHeight () const
 
long GetSlant () const
 
long GetBulletOffset () const
 
void SetAscent (long nAscent)
 
void SetDescent (long nDescent)
 
void SetExternalLeading (long nExtLeading)
 
void SetInternalLeading (long nIntLeading)
 
void SetLineHeight (long nHeight)
 
void SetSlant (long nSlant)
 
void SetBulletOffset (long nOffset)
 
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
 
- 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
 
FontAlign GetAlignment () const
 
rtl_TextEncoding GetCharSet () const
 
bool IsSymbolFont () 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 (FontAlign)
 
void SetCharSet (rtl_TextEncoding)
 
void SetSymbolFlag (bool)
 
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 (long nHeight)
 
long GetFontHeight () const
 
void SetAverageFontWidth (long nWidth)
 
long GetAverageFontWidth () 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 (short nLineOrientation)
 
short GetOrientation () const
 
void SetVertical (bool bVertical)
 
bool IsVertical () const
 
void SetKerning (FontKerning nKerning)
 
FontKerning GetKerning () const
 
bool IsKerning () 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 IsUnderlineAbove () const
 

Private Attributes

long mnAscent
 
long mnDescent
 
long mnIntLeading
 
long mnExtLeading
 
long mnLineHeight
 
long mnSlant
 
long mnBulletOffset
 
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 33 of file metric.hxx.

Constructor & Destructor Documentation

FontMetric::FontMetric ( )
explicit

Definition at line 42 of file fontmetric.cxx.

FontMetric::FontMetric ( const FontMetric )
default
FontMetric::~FontMetric ( )
override

Definition at line 55 of file fontmetric.cxx.

Member Function Documentation

long FontMetric::GetAscent ( ) const
inline
long FontMetric::GetBulletOffset ( ) const
inline

Definition at line 46 of file metric.hxx.

long FontMetric::GetDescent ( ) const
inline
long FontMetric::GetExternalLeading ( ) const
inline

Definition at line 43 of file metric.hxx.

Referenced by operator<<().

long FontMetric::GetInternalLeading ( ) const
inline

Definition at line 42 of file metric.hxx.

Referenced by operator<<().

long FontMetric::GetLineHeight ( ) const
inline

Definition at line 44 of file metric.hxx.

Referenced by vcl::PDFWriterImpl::drawLayout(), and operator<<().

long FontMetric::GetSlant ( ) const
inline

Definition at line 45 of file metric.hxx.

Referenced by operator<<().

bool FontMetric::IsFullstopCentered ( ) const
inline

Definition at line 56 of file metric.hxx.

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

Definition at line 64 of file metric.hxx.

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

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

Definition at line 63 of file fontmetric.cxx.

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

void FontMetric::SetAscent ( long  nAscent)
inline

Definition at line 48 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

void FontMetric::SetBulletOffset ( long  nOffset)
inline

Definition at line 54 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

void FontMetric::SetDescent ( long  nDescent)
inline

Definition at line 49 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

void FontMetric::SetExternalLeading ( long  nExtLeading)
inline

Definition at line 50 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

void FontMetric::SetFullstopCenteredFlag ( bool  bCentered)
inline

Definition at line 58 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

void FontMetric::SetInternalLeading ( long  nIntLeading)
inline

Definition at line 51 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

void FontMetric::SetLineHeight ( long  nHeight)
inline

Definition at line 52 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

void FontMetric::SetSlant ( long  nSlant)
inline

Definition at line 53 of file metric.hxx.

Referenced by OutputDevice::GetFontMetric().

Member Data Documentation

bool FontMetric::mbFullstopCentered
private

Definition at line 75 of file metric.hxx.

Referenced by operator==().

long FontMetric::mnAscent
private

Definition at line 67 of file metric.hxx.

Referenced by operator==().

long FontMetric::mnBulletOffset
private

Definition at line 73 of file metric.hxx.

long FontMetric::mnDescent
private

Definition at line 68 of file metric.hxx.

Referenced by operator==().

long FontMetric::mnExtLeading
private

Definition at line 70 of file metric.hxx.

Referenced by operator==().

long FontMetric::mnIntLeading
private

Definition at line 69 of file metric.hxx.

Referenced by operator==().

long FontMetric::mnLineHeight
private

Definition at line 71 of file metric.hxx.

long FontMetric::mnSlant
private

Definition at line 72 of file metric.hxx.

Referenced by operator==().


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