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); }
#define SETBIT(flags, bit, value)
#define GETBIT(flags, bit)
void setTextRenderingMode(TextRenderingMode renderingMode)
const OdString & typeface() const
void setCharSet(int charset)
void setTtfFlags(bool bold, bool italic, int charset, int pitchAndFamily)
void addTypeface(OdChar typeface)
void setTtfFlags(OdUInt32 flags)
void setTypeFace(const OdString &typeface)
int pitchAndFamily() const
TextRenderingMode textRenderingMode() const
void setPitchAndFamily(int pitchAndFamily)
void setItalic(bool italic)
OdUInt32 getTtfFlags() const
OdTtfDescriptor(const OdString &typeface, bool bold, bool italic, int charset, int pitchAndFamily)
void setFileName(const OdString &filename)
const OdString & fileName() const
void getTtfFlags(bool &bold, bool &italic, int &charset, int &pitchAndFamily) const