CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_graphics_context.h>
Public Member Functions | |
bool | operator== (const TFontSpec &aFontSpec) const |
bool | operator!= (const TFontSpec &aFontSpec) const |
void | SetName (const CString &aName) |
void | SetToSize (double aSize) |
double | Size () const |
Public Attributes | |
TTypefaceAttrib | iAttrib |
TTypefaceInstance | iInstance |
TColor | iColor = KTransparentBlack |
A font specification is used to select the nearest match for typeface and instance.
|
inline |
The inequality operator.
|
inline |
The equality operator.
|
inline |
Sets the typeface name to aName.
|
inline |
Sets the em size to aSize and the typeface instance's transformation to identity, removing any slant, skew, stretch or rotation.
|
inline |
Returns the em size before any transformation by the font transform.
TTypefaceAttrib CartoType::TFontSpec::iAttrib |
The typeface attributes: name, style, and required scripts.
TColor CartoType::TFontSpec::iColor = KTransparentBlack |
If non-null, the text color; otherwise the graphic context's color is used. Font colors are supported for labels only, when using embedded font selectors.
TTypefaceInstance CartoType::TFontSpec::iInstance |
The instance specification: size (expressed as a transform) and glyph rendering method (e.g., anti-alias versus monochrome).