20 #ifndef INCLUDED_VCL_FONT_HXX
21 #define INCLUDED_VCL_FONT_HXX
23 #include <rtl/ustring.hxx>
37 #define FontAlign TextAlign
54 explicit Font(
const OUString& rFamilyName,
const Size& );
55 explicit Font(
const OUString& rFamilyName,
const OUString& rStyleName,
const Size& );
59 const OUString& GetFamilyName()
const;
62 const OUString& GetStyleName()
const;
73 rtl_TextEncoding GetCharSet()
const;
75 bool IsSymbolFont()
const;
77 void SetFamilyName(
const OUString& rFamilyName );
78 void SetStyleName(
const OUString& rStyleName );
86 void SetCharSet( rtl_TextEncoding );
88 void SetSymbolFlag(
bool );
91 int GetQuality()
const;
94 void IncreaseQualityBy(
int);
95 void DecreaseQualityBy(
int);
99 const Color& GetColor()
const;
100 const Color& GetFillColor()
const;
102 bool IsTransparent()
const;
104 void SetColor(
const Color& );
105 void SetFillColor(
const Color& );
107 void SetTransparent(
bool bTransparent );
109 void SetFontSize(
const Size& );
110 const Size& GetFontSize()
const;
119 void SetCJKContextLanguageTag(
const LanguageTag& );
120 const LanguageTag& GetCJKContextLanguageTag()
const;
128 void SetVertical(
bool bVertical );
129 bool IsVertical()
const;
132 bool IsKerning()
const;
134 void SetOutline(
bool bOutline );
135 bool IsOutline()
const;
136 void SetShadow(
bool bShadow );
137 bool IsShadow()
const;
148 void SetWordLineMode(
bool bWordLine );
149 bool IsWordLineMode()
const;
159 bool IsSameInstance(
const Font& )
const;
164 static Font identifyFont(
const void* pBuffer, sal_uInt32 nLen );
168 inline bool IsUnderlineAbove()
const;
185 #endif // _VCL_FONT_HXX
LanguageType GetCJKContextLanguage() const
VCL_DLLPUBLIC SvStream & ReadFont(SvStream &rIStm, vcl::Font &)
LanguageType GetLanguage() const
bool operator!=(const Font &rFont) const
VCL_DLLPUBLIC SvStream & WriteFont(SvStream &rOStm, const vcl::Font &)
o3tl::cow_wrapper< ImplFont > ImplType
bool operator==(const ItalicMatrix &a, const ItalicMatrix &b)
LanguageType GetLanguage(SwWrtShell &rSh, sal_uInt16 nLangWhichId)
bool IsUnderlineAbove() const
bool operator==(const Font &) const
void SetLanguage(SwWrtShell &rWrtSh, std::u16string_view rLangText, bool bIsForSelection, SfxItemSet &rCoreSet)
#define LANGUAGE_JAPANESE