CFx SDK Documentation
2020SP3
|
#include <OdFont.h>
Public Types | |
enum | { kBigFont10 = 0x0001, kUniFont10 = 0x0002, kFont10 = 0x0004, kFont11 = 0x0008, kFont10A = 0x0010, kTrueType = 0x0020, kFontGdt = 0x0040, kFontSimplex6 = 0x0080, kShapes11 = 0x0100, kFontRsc = 0x0200 } |
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdFont) | |
OdFont () | |
OdUInt32 | getFlags () const |
OdUInt32 | flags () |
void | setFlags (OdUInt32 fontFlags) |
void | addFlag (OdUInt32 fontFlags) |
virtual OdResult | initialize (OdStreamBuf *pStreamBuf)=0 |
virtual OdResult | drawCharacter (OdChar character, OdGePoint2d &advance, OdGiCommonDraw *pWd, OdTextProperties &textProperties)=0 |
virtual OdResult | drawCharacter (OdChar character, OdGePoint2d &advance, OdGiConveyorGeometry *pGeometry, OdTextProperties &textProperties)=0 |
virtual double | getAbove () const =0 |
virtual double | getBelow () const =0 |
virtual OdUInt32 | getAvailableChars (OdCharArray &characters)=0 |
virtual bool | hasCharacter (OdChar character)=0 |
virtual double | getHeight () const |
virtual double | getInternalLeading () const |
double | fontAbove () const |
virtual double | getUnderlinePos (double textSize) const |
virtual double | getOverlinePos (double textSize) const |
virtual bool | isShxFont () |
virtual double | getAverageWidth () |
virtual void | getScore (OdUInt16 character, OdGePoint2d &advance, OdGePoint3d *pointsOver, OdGePoint3d *pointsUnder, const OdTextProperties &textFlags) |
virtual OdUInt32 | getFontData (OdUInt32 dwTable, OdUInt32 dwOffset, void *pBuffer, OdUInt32 cbData) const |
virtual bool | supportsVerticalMode () |
virtual OdString | getFileName () const |
virtual void | getDescriptor (OdTtfDescriptor &descr) |
virtual OdInt32 | getLogFont (void *lpLogFont) const |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class is the base interface class for classes that implements font objects. <group Other_Classes>
anonymous enum |
Adds the specified font flags to this Font object.
fontFlags | [in] Font flags. |
Value kBigFont10 0x0001 kUniFont10 0x0002 kFont10 0x0004 kFont11 0x0008 kFont10A 0x0010 kTrueType 0x0020 kFontGdt 0x0040 kFontSimplex6 0x0080 kShapes11 0x0100 kFontRsc 0x0200
|
pure virtual |
Draws the specified character with this Font object.
character | [in] Character to draw. |
advance | [in] Offset to next character. |
pWd | [in/out] Draw object that can be used by this function to set the necessary attributes and create the necessary geometry. |
textProperties | [in] Text properties. |
|
pure virtual |
Draws the specified character with this Font object.
character | [in] Character to draw. |
advance | [in] Offset to next character. |
pGeometry | [in] Pointer to the modeler geometry. |
textProperties | [in] Text properties. |
|
inline |
Returns the font flags for this Font object.
Value kBigFont10 0x0001 kUniFont10 0x0002 kFont10 0x0004 kFont11 0x0008 kFont10A 0x0010 kTrueType 0x0020 kFontGdt 0x0040 kFontSimplex6 0x0080 kShapes11 0x0100 kFontRsc 0x0200
|
inline |
Returns the height of this Font object above the baseline.
|
pure virtual |
Returns the height of this Font object above the baseline.
|
pure virtual |
Returns an array of the characters defined in this Font object.
characters | [out] Receives the array of characters. |
|
inlinevirtual |
|
pure virtual |
Returns the depth of this font object below the baseline.
|
inlinevirtual |
|
inlinevirtual |
|
inline |
Returns the font flags for this Font object.
Value kBigFont10 0x0001 kUniFont10 0x0002 kFont10 0x0004 kFont11 0x0008 kFont10A 0x0010 kTrueType 0x0020 kFontGdt 0x0040 kFontSimplex6 0x0080 kShapes11 0x0100 kFontRsc 0x0200
|
inlinevirtual |
Returns the font data for the specified character.
dwTable | [in] Metric table to query. |
dwOffset | [in] Offset into table. |
pBuffer | [in] Pointer to to the buffer to receive the data. |
cbData | [in] ???. |
|
inlinevirtual |
|
inlinevirtual |
Returns the LOGFONT for this font
lpLogFont | [in] Pointer to the buffer to receive the data. |
|
inlinevirtual |
|
inlinevirtual |
Returns arrays of points over and under the baseline for the specified character in this OdFont object.
character | [in] Character. |
advance | [in] Offset to next character. |
pointsOver | [in] Array of points over the baseline.. |
pointsUnder | [in] Array of points under the baseline. |
textFlags | [in] Text flags. |
Value OdTextProperties::kNormalText 0x01 OdTextProperties::kVerticalText 0x02 OdTextProperties::kUnderlined 0x04 OdTextProperties::kOverlined 0x08 OdTextProperties::kLastChar 0x10 OdTextProperties::kInBigFont 0x20 OdTextProperties::kInclPenups 0x40
|
inlinevirtual |
|
pure virtual |
Returns true if and only if the specified character is defined in this Font object.
character | [in] Character. |
|
pure virtual |
Initializes this Font object to read font data from the specified StreamBuf object.
pStreamBuf | [in] Pointer to the StreamBuf object from which the data are to be read. |
|
inlinevirtual |
OdFont::ODRX_DECLARE_MEMBERS | ( | OdFont | ) |
Sets the font flags for this Font object.
fontFlags | [in] Font flags. |
Value kBigFont10 0x0001 kUniFont10 0x0002 kFont10 0x0004 kFont11 0x0008 kFont10A 0x0010 kTrueType 0x0020 kFontGdt 0x0040 kFontSimplex6 0x0080 kShapes11 0x0100 kFontRsc 0x0200
|
inlinevirtual |