#include <OdTrueTypeFontBase.h>
|
| | ODRX_DECLARE_MEMBERS (OdTrueTypeFontBase) |
| |
| virtual void | getGlyphIndexes (const OdCharArray &srcArray, OdCharArray &glyphs, OdIntArray *visualOrderFromLogical=NULL, OdBoolArray *isLTR=NULL, OdGeVector2dArray *offsets=NULL)=0 |
| |
| virtual bool | isSupportExtendedLayouting ()=0 |
| |
| virtual bool | isSupportReorder ()=0 |
| |
| virtual OdString | getSubstituteFontByChar (OdChar unicodeChar, void *pSubstitutedFontData=NULL) const =0 |
| |
| | 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 |
| |
| | 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 |
| |
<group Other_Classes>
Definition at line 43 of file OdTrueTypeFontBase.h.
◆ getGlyphIndexes()
Returns glyph indices and possibly some extended information needed to render given character array.
glyphs will always be filled in. visualOrderFromLogical will be filled in if isSupportReorder() or isSupportExtendedLayouting() return true. isLTR and offsets will be filled in if isSupportExtendedLayouting() returns true.
- Parameters
-
| srcArray | [in] Input text. |
| glyphs | [out] Glyph indices for rendering given text. |
| visualOrderFromLogical | [out] Mapping from srcArray to glyphs. Please note that this is not always a one-to-one mapping. The length of glyphs array can be smaller or greater than the length of srcArray. |
| isLTR | [out] Specifies whether a character in srcArray a left-to-right character. |
| offsets | [out] For each glyph from glyphs array, specifies the offset of this glyph from pen position. Please note that this is something different from advance (which adjusts pen position after each glyph). |
◆ getSubstituteFontByChar()
| virtual OdString OdTrueTypeFontBase::getSubstituteFontByChar |
( |
OdChar |
unicodeChar, |
|
|
void * |
pSubstitutedFontData = NULL |
|
) |
| const |
|
pure virtual |
◆ isSupportExtendedLayouting()
| virtual bool OdTrueTypeFontBase::isSupportExtendedLayouting |
( |
| ) |
|
|
pure virtual |
If this returns true, getGlyphIndexes() method should be able to fill the input arrays visualOrderFromLogical, isLTR and offsets. If this returns true, isSupportReorder() should also return true.
◆ isSupportReorder()
| virtual bool OdTrueTypeFontBase::isSupportReorder |
( |
| ) |
|
|
pure virtual |
Returns true in case font support symbols reordering.
◆ ODRX_DECLARE_MEMBERS()
The documentation for this class was generated from the following file: