CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_graphics_context.h>
Public Member Functions | |
bool | operator== (const FontSpec &aFontSpec) const |
bool | operator!= (const FontSpec &aFontSpec) const |
void | SetName (const String &aName) |
void | SetToSize (double aSize) |
double | Size () const |
Public Attributes | |
TypefaceAttrib | Attrib |
TypefaceInstance | Instance |
CartoTypeCore::Color | Color = 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.
TypefaceAttrib CartoTypeCore::FontSpec::Attrib |
The typeface attributes: name, style, and required scripts.
CartoTypeCore::Color CartoTypeCore::FontSpec::Color = 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.
TypefaceInstance CartoTypeCore::FontSpec::Instance |
The instance specification: size (expressed as a transform) and glyph rendering method (e.g., anti-alias versus monochrome).