#include <cartotype_graphics_context.h>
The data for a typeface is either a filename or a pointer to memory.
◆ TypefaceData() [1/3]
CartoTypeCore::TypefaceData::TypefaceData |
( |
const MString & |
aName | ) |
|
|
inlineexplicit |
Creates a typeface data object representing a filename.
◆ TypefaceData() [2/3]
CartoTypeCore::TypefaceData::TypefaceData |
( |
const char * |
aName | ) |
|
|
inlineexplicit |
Creates a typeface data object representing a filename in UTF-8.
◆ TypefaceData() [3/3]
CartoTypeCore::TypefaceData::TypefaceData |
( |
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.
◆ Data()
const uint8_t * CartoTypeCore::TypefaceData::Data |
( |
| ) |
const |
|
inline |
Returns a pointer to the in-memory data.
◆ DataLength()
size_t CartoTypeCore::TypefaceData::DataLength |
( |
| ) |
const |
|
inline |
Returns the length of the in-memory data in bytes.
◆ InMemory()
bool CartoTypeCore::TypefaceData::InMemory |
( |
| ) |
const |
|
inline |
Returns true if the data is in memory.
◆ Name()
const MString & CartoTypeCore::TypefaceData::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