a Abstract font class.
More...
◆ AbstractFont()
AbstractFont::AbstractFont |
( |
const char * |
name, |
|
|
int |
size, |
|
|
int |
properties = kFontNone |
|
) |
| |
◆ ~AbstractFont()
virtual AbstractFont::~AbstractFont |
( |
| ) |
|
|
virtual |
◆ GetExtent() [1/2]
virtual void AbstractFont::GetExtent |
( |
const char * |
s, |
|
|
int |
inCharCount, |
|
|
float * |
outWidth, |
|
|
float * |
outHeight, |
|
|
VGDevice * |
context |
|
) |
| const |
|
virtual |
Computes the width and height of the input string using the current font capabilities in the input VGDevice
Implements VGFont.
◆ GetExtent() [2/2]
virtual void AbstractFont::GetExtent |
( |
int |
c, |
|
|
float * |
outWidth, |
|
|
float * |
outHeight, |
|
|
VGDevice * |
context |
|
) |
| const |
|
virtual |
Computes the width and height of the input character using the current font capabilities in the input VGDevice
Implements VGFont.
◆ GetName()
virtual const char* AbstractFont::GetName |
( |
| ) |
const |
|
inlinevirtual |
Returns the current object's name (as a string)
Implements VGFont.
◆ GetProperties()
virtual int AbstractFont::GetProperties |
( |
| ) |
const |
|
inlinevirtual |
Returns the current object's property value(s) (see enum above)
Implements VGFont.
◆ GetSize()
virtual int AbstractFont::GetSize |
( |
| ) |
const |
|
inlinevirtual |
Returns the current object's size (as an int)
Implements VGFont.