24 #ifndef _OdTtfDescriptor_h_Included_
25 #define _OdTtfDescriptor_h_Included_
75 setTtfFlags(bold, italic, charset, pitchAndFamily);
114 m_Typeface += typeface;
128 void getTtfFlags(
bool& bold,
bool& italic,
int& charset,
int& pitchAndFamily)
const
133 pitchAndFamily = this->pitchAndFamily();
163 void setTtfFlags(
bool bold,
bool italic,
int charset,
int pitchAndFamily)
168 setPitchAndFamily(pitchAndFamily);
185 void setCharSet(
int charset) { m_nFlags = ((m_nFlags & 0xFFFF00FF) | ((charset << 8) & 0x0000FF00)); }
194 void setPitchAndFamily(
int pitchAndFamily) { m_nFlags = ((m_nFlags & 0xFFFFFF00) | (pitchAndFamily & 0x000000FF)); }
220 int getPitch()
const {
return (pitchAndFamily() & 0x00000003); }
224 int getFamily()
const {
return (pitchAndFamily() & 0x000000f0); }
240 #endif // _OdTtfDescriptor_h_Included_