20#ifndef INCLUDED_VCL_FONT_HXX
21#define INCLUDED_VCL_FONT_HXX
23#include <rtl/ustring.hxx>
53 explicit Font(
const OUString& rFamilyName,
const Size& );
54 explicit Font(
const OUString& rFamilyName,
const OUString& rStyleName,
const Size& );
58 const OUString& GetFamilyName()
const;
61 const OUString& GetStyleName()
const;
72 rtl_TextEncoding GetCharSet()
const;
75 void SetFamilyName(
const OUString& rFamilyName );
76 void SetStyleName(
const OUString& rStyleName );
84 void SetCharSet( rtl_TextEncoding );
87 int GetQuality()
const;
90 void IncreaseQualityBy(
int);
91 void DecreaseQualityBy(
int);
95 const Color& GetColor()
const;
98 bool IsTransparent()
const;
100 void SetColor(
const Color& );
101 void SetFillColor(
const Color& );
103 void SetTransparent(
bool bTransparent );
105 void SetFontSize(
const Size& );
113 tools::Long GetOrCalculateAverageFontWidth()
const;
118 void SetCJKContextLanguageTag(
const LanguageTag& );
119 const LanguageTag& GetCJKContextLanguageTag()
const;
127 void SetVertical(
bool bVertical );
128 bool IsVertical()
const;
131 bool IsKerning()
const;
132 void SetFixKerning(
const short nSpacing);
133 short GetFixKerning()
const;
134 bool IsFixKerning()
const;
136 void SetOutline(
bool bOutline );
137 bool IsOutline()
const;
138 void SetShadow(
bool bShadow );
139 bool IsShadow()
const;
150 void SetWordLineMode(
bool bWordLine );
151 bool IsWordLineMode()
const;
161 bool IsSameInstance(
const Font& )
const;
162 bool EqualIgnoreColor(
const Font& )
const;
165 size_t GetHashValueIgnoreColor()
const;
170 static Font identifyFont(
const void* pBuffer, sal_uInt32 nLen );
174 inline bool IsUnderlineAbove()
const;
o3tl::cow_wrapper< ImplFont > ImplType
bool operator!=(const Font &rFont) const
bool IsUnderlineAbove() const
LanguageType GetLanguage() const
LanguageType GetCJKContextLanguage() const
bool operator==(const Font &) const
VCL_DLLPUBLIC SvStream & ReadFont(SvStream &rIStm, vcl::Font &)
VCL_DLLPUBLIC SvStream & WriteFont(SvStream &rOStm, const vcl::Font &)
#define LANGUAGE_JAPANESE
sal_uInt16 GetFontSize(sal_uInt16 nPos)
void SetLanguage(SwWrtShell &rWrtSh, std::u16string_view rLangText, bool bIsForSelection, SfxItemSet &rCoreSet)
LanguageType GetLanguage(SfxItemSet const &aSet, sal_uInt16 nLangWhichId)
Color GetFillColor(Color const &rColor, DrawModeFlags nDrawMode, StyleSettings const &rStyleSettings)
bool operator==(const ItalicMatrix &a, const ItalicMatrix &b)