#include <cartotype_graphics_context.h>
The data for a typeface is either a filename or a pointer to memory.
◆ TTypefaceData() [1/3]
CartoType::TTypefaceData::TTypefaceData |
( |
const MString & |
aName | ) |
|
|
inlineexplicit |
Creates a typeface data object representing a filename.
◆ TTypefaceData() [2/3]
CartoType::TTypefaceData::TTypefaceData |
( |
const char * |
aName | ) |
|
|
inlineexplicit |
Creates a typeface data object representing a filename in UTF-8.
◆ TTypefaceData() [3/3]
CartoType::TTypefaceData::TTypefaceData |
( |
const uint8_t * |
aData, |
|
|
size_t |
aLength, |
|
|
bool |
aCopyData |
|
) |
| |
|
inline |
Creates a typeface data object for data in memory. If aCopyData is true the data is copied, otherwise only the pointer is stored.
◆ GetData()
void CartoType::TTypefaceData::GetData |
( |
const uint8_t *& |
aData, |
|
|
size_t & |
aLength |
|
) |
| const |
|
inline |
Gets a pointer to the in-memory data and its length in bytes.
◆ InMemory()
bool CartoType::TTypefaceData::InMemory |
( |
| ) |
const |
|
inline |
Returns true if the data is in memory.
◆ Name()
const MString & CartoType::TTypefaceData::Name |
( |
| ) |
const |
|
inline |
Returns the name of the file, if the data is in a file.
The documentation for this class was generated from the following file:
- cartotype_graphics_context.h