CFx SDK Documentation
2023 SP0
|
#include <TtfDescriptor.h>
Public Member Functions | |
OdTtfDescriptor () | |
OdTtfDescriptor (const OdString &typeface, bool bold, bool italic, int charset, int pitchAndFamily) | |
const OdString & | fileName () const |
const OdString & | typeface () const |
OdUInt32 | getTtfFlags () const |
void | clearFileName () |
void | clearTypeface () |
void | addTypeface (OdChar typeface) |
void | getTtfFlags (bool &bold, bool &italic, int &charset, int &pitchAndFamily) const |
void | setFileName (const OdString &filename) |
void | setTypeFace (const OdString &typeface) |
void | setTtfFlags (OdUInt32 flags) |
void | setTtfFlags (bool bold, bool italic, int charset, int pitchAndFamily) |
void | setBold (bool bold) |
void | setItalic (bool italic) |
void | setCharSet (int charset) |
void | setPitchAndFamily (int pitchAndFamily) |
bool | isBold () const |
bool | isItalic () const |
OdUInt16 | charSet () const |
int | pitchAndFamily () const |
int | getPitch () const |
int | getFamily () const |
TextRenderingMode | textRenderingMode () const |
void | setTextRenderingMode (TextRenderingMode renderingMode) |
This class implements TrueType Descriptor objects which provide an interface to the characteristics of a TrueType font.
<group Other_Classes>
Definition at line 45 of file TtfDescriptor.h.
|
inline |
Definition at line 57 of file TtfDescriptor.h.
|
inline |
typeface | [in] Typeface. |
bold | [in] True if and only if a bold font. |
italic | [in] True if and only if an italic font. |
charset | [in] Character set. |
pitchAndFamily | [in] Pitch and Family. |
Definition at line 72 of file TtfDescriptor.h.
Adds the specified typeface to this TtfDescriptor object.
Definition at line 112 of file TtfDescriptor.h.
|
inline |
Returns the character set for this TtfDescriptor object.
Definition at line 207 of file TtfDescriptor.h.
|
inline |
Clears the filename of this TtfDescriptor object.
Definition at line 98 of file TtfDescriptor.h.
|
inline |
Clears the typeface of this TtfDescriptor object.
Definition at line 105 of file TtfDescriptor.h.
|
inline |
Returns the filename of this TtfDescriptor object.
Definition at line 83 of file TtfDescriptor.h.
|
inline |
Returns the family of this TtfDescriptor object.
Definition at line 224 of file TtfDescriptor.h.
|
inline |
Returns the pitch of this TtfDescriptor object.
Definition at line 220 of file TtfDescriptor.h.
|
inline |
Returns the flags of this TtfDescriptor object.
Definition at line 93 of file TtfDescriptor.h.
|
inline |
Returns the flags of this TtfDescriptor object.
bold | [out] Receives true if and only if this is a bold font. |
italic | [out] Receives true if and only if this is an italic font. |
charset | [out] Receives the character set. |
pitchAndFamily | [out] Receives the Pitch and Family. |
Definition at line 128 of file TtfDescriptor.h.
|
inline |
Returns true if and only if this TtfDescriptor is a bold font.
Definition at line 199 of file TtfDescriptor.h.
|
inline |
Returns true if and only if this TtfDescriptor is an italic font.
Definition at line 203 of file TtfDescriptor.h.
|
inline |
Returns the pitch and family of this TtfDescriptor object.
Definition at line 215 of file TtfDescriptor.h.
|
inline |
Sets the bold flag of this TtfDescriptor object.
bold | [in] True if and only if a bold font. |
Definition at line 175 of file TtfDescriptor.h.
|
inline |
Sets the character set of this TtfDescriptor object.
charset | [in] Character set. |
Definition at line 185 of file TtfDescriptor.h.
Sets the filename of this TtfDescriptor object.
filename | [in] Filename. |
Definition at line 140 of file TtfDescriptor.h.
|
inline |
Sets the italic flag of this TtfDescriptor object.
italic | [in] True if and only if an italic font. |
Definition at line 180 of file TtfDescriptor.h.
|
inline |
Sets the pitch and family of this TtfDescriptor object.
pitchAndFamily | [in] Pitch and Family. |
Definition at line 194 of file TtfDescriptor.h.
|
inline |
Sets text rendering mode (BasedA/BasedM) of this TtfDescriptor object.
Definition at line 234 of file TtfDescriptor.h.
|
inline |
Sets the flags of this TtfDescriptor object.
bold | [in] True if and only if a bold font. |
italic | [in] True if and only if an italic font. |
charset | [in] Character set. |
pitchAndFamily | [in] Pitch and Family. |
Definition at line 163 of file TtfDescriptor.h.
Sets the flags of this TtfDescriptor object.
flags | [in] Flags. |
Definition at line 150 of file TtfDescriptor.h.
Sets the typeface of this TtfDescriptor object.
typeface | [in] Typeface. |
Definition at line 145 of file TtfDescriptor.h.
|
inline |
Returns text rendering mode (BasedA/BasedM) of this TtfDescriptor object.
Definition at line 229 of file TtfDescriptor.h.
|
inline |
Returns the typeface of this TtfDescriptor object.
Definition at line 88 of file TtfDescriptor.h.