CFx SDK Documentation 2024 SP0
|
#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 (OdChar 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) const |
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 implement font objects. <group Other_Classes>
anonymous enum |
Adds the specified font flags to this font object.
fontFlags | [in] Property font flags to set. |
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 |
Gets the OdTtfDescriptor for this font.
descr | [out] TrueType font descriptor. |
|
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 the buffer to receive the data. |
cbData | [in] The length, in bytes, of the information to be retrieved. |
The number of bytes returned in the buffer.
|
inlinevirtual |
|
inlinevirtual |
Returns the LOGFONT for this font.
lpLogFont | [in] Pointer to the buffer to receive the data. |
|
inlinevirtual |
Returns the overline position for this font object at the specified text size.
textSize | [in] Text size. |
|
inlinevirtual |
Returns an array 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. |
The textFlags parameter must be a combination of one or more of the following:
Value OdTextProperties::kNormalText 0x01 OdTextProperties::kVerticalText 0x02 OdTextProperties::kUnderlined 0x04 OdTextProperties::kOverlined 0x08 OdTextProperties::kLastChar 0x10 OdTextProperties::kInBigFont 0x20 OdTextProperties::kInclPenups 0x40
|
inlinevirtual |
Returns the underline position for this font object at the specified text size.
textSize | [in] Text size. |
|
pure virtual |
Checks whether 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 is to be read. |
|
inlinevirtual |
OdFont::ODRX_DECLARE_MEMBERS | ( | OdFont | ) |
Sets the font flags for this font object.
fontFlags | [in] Property font flags to set. |
Value kBigFont10 0x0001 kUniFont10 0x0002 kFont10 0x0004 kFont11 0x0008 kFont10A 0x0010 kTrueType 0x0020 kFontGdt 0x0040 kFontSimplex6 0x0080 kShapes11 0x0100 kFontRsc 0x0200
|
inlinevirtual |