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

#include <OdFontServices.h>

Inheritance diagram for OdFontServices:
OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdFontServices)
 
virtual void loadStyleRec (OdGiTextStyle &textStyle, OdDbBaseDatabase *pDb) const =0
 
virtual OdString getFontFilePath (OdGiTextStyle &textStyle, OdDbBaseDatabase *pDb) const =0
 
virtual OdString getBigFontFilePath (OdGiTextStyle &textStyle, OdDbBaseDatabase *pDb) const =0
 
virtual OdFontPtr defaultFont () const =0
 
virtual bool getTTFParamFromFile (OdString fileName, OdTtfDescriptor &descr) const =0
 
virtual bool ttfFileNameByDescriptor (const OdTtfDescriptor &descr, OdString &fileName, OdDbBaseHostAppServices *pHost)=0
 
virtual bool getSystemFontFolders (OdStringArray &aDirs, OdDbBaseHostAppServices *pHost)=0
 
virtual void collectFilePathsInDirectory (OdStringArray &res, const OdString &sPath, const OdString &sFilter=L"*.*")=0
 
virtual OdString iFindFile (const OdString &file, OdDbBaseHostAppServices *pHostApp)
 
- 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

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

This class is the base class for classes that provide platform-dependent font services for the ODA Platform.

Corresponding C++ library: TD_Gi <group Other_Classes>

Definition at line 39 of file OdFontServices.h.

Member Function Documentation

◆ collectFilePathsInDirectory()

virtual void OdFontServices::collectFilePathsInDirectory ( OdStringArray res,
const OdString sPath,
const OdString sFilter = L"*.*" 
)
pure virtual

◆ defaultFont()

virtual OdFontPtr OdFontServices::defaultFont ( ) const
pure virtual

Returns the default OdFont object associated with this FontServices object.

◆ getBigFontFilePath()

virtual OdString OdFontServices::getBigFontFilePath ( OdGiTextStyle textStyle,
OdDbBaseDatabase pDb 
) const
pure virtual

Returns the BigFontFilePath for the specified OdGiTextStyle and OdDbDatabase objects.

Parameters
textStyle[in] TextStyle object.
pDb[in] Pointer to the database.

◆ getFontFilePath()

virtual OdString OdFontServices::getFontFilePath ( OdGiTextStyle textStyle,
OdDbBaseDatabase pDb 
) const
pure virtual

Returns the FontFilePath for the specified OdGiTextStyle and OdDbDatabase objects.

Parameters
textStyle[in] TextStyle object.
pDb[in] Pointer to the database.

◆ getSystemFontFolders()

virtual bool OdFontServices::getSystemFontFolders ( OdStringArray aDirs,
OdDbBaseHostAppServices pHost 
)
pure virtual

◆ getTTFParamFromFile()

virtual bool OdFontServices::getTTFParamFromFile ( OdString  fileName,
OdTtfDescriptor descr 
) const
pure virtual

Retrieval OdTtfDescriptor data from file.

◆ iFindFile()

virtual OdString OdFontServices::iFindFile ( const OdString file,
OdDbBaseHostAppServices pHostApp 
)
inlinevirtual

Definition at line 78 of file OdFontServices.h.

◆ loadStyleRec()

virtual void OdFontServices::loadStyleRec ( OdGiTextStyle textStyle,
OdDbBaseDatabase pDb 
) const
pure virtual

Returns the specified OdGiTextStyle record for the specified OdDbDatabase object.

Parameters
textStyle[out] Receives the TextStyle record.
pDb[in] Pointer to the database.

◆ ODRX_DECLARE_MEMBERS()

OdFontServices::ODRX_DECLARE_MEMBERS ( OdFontServices  )

◆ ttfFileNameByDescriptor()

virtual bool OdFontServices::ttfFileNameByDescriptor ( const OdTtfDescriptor descr,
OdString fileName,
OdDbBaseHostAppServices pHost 
)
pure virtual

Locates the TTF or TTC file containing the specified font description.


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