42 void SetSize(uint32_t size) { m_packed.size = MIN(size, 0x8000u); }
43 uint32_t GetSize()
const {
return m_packed.size; }
54 void SetOutline(
bool outline) { m_packed.outline = outline; }
55 bool GetOutline()
const {
return m_packed.outline; }
57 TBFontDescription() : m_packed_init(0) {}
58 TBFontDescription(
const TBFontDescription &src) { m_packed_init = src.m_packed_init; m_id = src.m_id; }
59 const TBFontDescription& operator = (
const TBFontDescription &src) { m_packed_init = src.m_packed_init; m_id = src.m_id;
return *
this; }
60 bool operator == (
const TBFontDescription &fd)
const {
return m_packed_init == fd.m_packed_init && m_id == fd.m_id; }
61 bool operator != (
const TBFontDescription &fd)
const {
return !(*
this == fd); }
71 uint32_t m_packed_init;
77 #endif // TB_FONT_DESC_H
TBID GetFontFaceID() const
Get the TBID for the TBFontFace that matches this font description.
Definition: tb_font_desc.h:40
TBID GetID() const
Get the TBID for the font name (See SetID).
Definition: tb_font_desc.h:32
TBID is a wrapper for a uint32_t to be used as ID.
Definition: tb_id.h:18
void SetID(const TBID &id)
Set the font ID of the font to use.
Definition: tb_font_desc.h:29
TBFontDescription describes a font.
Definition: tb_font_desc.h:18