|
CartoType API
|
#include <cartotype_typeface.h>
Public Types | |
| enum | TType { EName, EMemory } |
Public Member Functions | |
| TTypefaceResourceId (const MString &aName) | |
| TTypefaceResourceId (const uint8 *aData, int32 aLength, bool aCopyData) | |
| TType | Type () const |
| const MString * | Name () const |
| void | GetData (const uint8 *&aData, int32 &aLength, bool &aCopyData) const |
The identifier for a typeface resource is either a name, treated by default as a filename, or a pointer to the resource data in memory.
| CartoType::TTypefaceResourceId::TTypefaceResourceId | ( | const MString & | aName | ) | [inline, explicit] |
Create a typeface resource identifier for a string usually representing a filename.
| CartoType::TTypefaceResourceId::TTypefaceResourceId | ( | const uint8 * | aData, |
| int32 | aLength, | ||
| bool | aCopyData | ||
| ) | [inline] |
Create a typeface resource identifier for data in memory. If aCopyData is true, the typeface accessor copies the data, otherwise it just keeps a pointer to it.
1.7.5.1