CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
OdTrueTypeFontBase Class Referenceabstract

#include <OdTrueTypeFontBase.h>

Inheritance diagram for OdTrueTypeFontBase:
OdFont OdRxObject

Public Member Functions

 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
 
- Public Member Functions inherited from OdFont
 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 OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () 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

- Public Types inherited from OdFont
enum  {
  kBigFont10 = 0x0001 , kUniFont10 = 0x0002 , kFont10 = 0x0004 , kFont11 = 0x0008 ,
  kFont10A = 0x0010 , kTrueType = 0x0020 , kFontGdt = 0x0040 , kFontSimplex6 = 0x0080 ,
  kShapes11 = 0x0100 , kFontRsc = 0x0200
}
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

<group Other_Classes>

Definition at line 43 of file OdTrueTypeFontBase.h.

Member Function Documentation

◆ getGlyphIndexes()

virtual void OdTrueTypeFontBase::getGlyphIndexes ( const OdCharArray srcArray,
OdCharArray glyphs,
OdIntArray visualOrderFromLogical = NULL,
OdBoolArray isLTR = NULL,
OdGeVector2dArray offsets = NULL 
)
pure virtual

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()

OdTrueTypeFontBase::ODRX_DECLARE_MEMBERS ( OdTrueTypeFontBase  )

The documentation for this class was generated from the following file: