#include <ufont.hpp>
Public Member Functions | |
void | init (const char *name, const char *normal_weight="medium", const char *bold_weight="bold", const char *slant="o", const char *compression="normal", const char *encoding="1", const UFont::FontSize *font_sizes=null) |
creates a new FontFamily from a native system font name | |
int | lsizeToPtsize (int logical_size) const |
int | ptsizeToLsize (int point_size) const |
these functions convert point sizes to logical sizes and vice versa. | |
Static Public Member Functions | |
static float | getXYScale (short lscale) |
estimates the XY scale from the logical scale. | |
static const UFont::FontSize * | getFontSizes () |
returns an array of MAX_LSIZE. | |
Static Public Attributes | |
static UFontFamily | standard |
Predefined font families. | |
static UFontFamily | any |
Predefined font families. | |
static UFontFamily | helvetica |
Predefined font families. | |
static UFontFamily | times |
Predefined font families. | |
static UFontFamily | courier |
Predefined font families. | |
static UFontFamily | fixed |
Predefined font families. |
A Font Family represents a collection of fonts for all possible sizes and styles (however, actual fonts are loaded dynamically when necessary)
|
creates a new FontFamily from a native system font name !Warnings:
|
|
Predefined font families.
|
|
Predefined font families.
|
|
Predefined font families.
|
|
Predefined font families.
|
|
Predefined font families.
|
|
Predefined font families.
|