23 kUnderlineFace = 1 << 3,
24 kStrikethroughFace = 1 << 4
38 ~
CFontDesc () noexcept
override =
default;
45 const CCoord&
getSize ()
const {
return size; }
46 const int32_t&
getStyle ()
const {
return style; }
49 virtual void setSize (CCoord newSize);
50 virtual void setStyle (int32_t newStyle);
53 virtual const PlatformFontPtr getPlatformFont ()
const;
57 virtual bool operator== (
const CFontDesc&)
const;
58 virtual bool operator!= (
const CFontDesc& other)
const {
return !(*
this == other);}
60 static void cleanup ();
63 void beforeDelete ()
override;
64 virtual void freePlatformFont ();
69 mutable PlatformFontPtr platformFont;
72 using CFontRef = CFontDesc*;
77 extern const CFontRef kSystemFont;
78 extern const CFontRef kNormalFontVeryBig;
79 extern const CFontRef kNormalFontBig;
80 extern const CFontRef kNormalFont;
81 extern const CFontRef kNormalFontSmall;
82 extern const CFontRef kNormalFontSmaller;
83 extern const CFontRef kNormalFontVerySmall;
84 extern const CFontRef kSymbolFont;
virtual void setStyle(int32_t newStyle)
set the style of the font
Definition: cfont.cpp:137
font class
Definition: cfont.h:31
const UTF8String & getName() const
get the name of the font
Definition: cfont.h:44
Definition: customcontrols.cpp:8
const CCoord & getSize() const
get the height of the font
Definition: cfont.h:45
virtual void setName(const UTF8String &newName)
set the name of the font
Definition: cfont.cpp:120
virtual void setSize(CCoord newSize)
set the height of the font
Definition: cfont.cpp:130
Definition: vstguibase.h:247
font paint interface
Definition: iplatformfont.h:17
holds an UTF8 encoded string and a platform representation of it
Definition: cstring.h:56
const int32_t & getStyle() const
get the style of the font
Definition: cfont.h:46