CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | Public Attributes | List of all members
CartoTypeCore::FontSpec Class Reference

#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
 

Detailed Description

A font specification is used to select the nearest match for typeface and instance.

Member Function Documentation

◆ operator!=()

bool CartoTypeCore::FontSpec::operator!= ( const FontSpec aFontSpec) const
inline

The inequality operator.

◆ operator==()

bool CartoTypeCore::FontSpec::operator== ( const FontSpec aFontSpec) const
inline

The equality operator.

◆ SetName()

void CartoTypeCore::FontSpec::SetName ( const String aName)
inline

Sets the typeface name to aName.

◆ SetToSize()

void CartoTypeCore::FontSpec::SetToSize ( double  aSize)
inline

Sets the em size to aSize and the typeface instance's transformation to identity, removing any slant, skew, stretch or rotation.

◆ Size()

double CartoTypeCore::FontSpec::Size ( ) const
inline

Returns the em size before any transformation by the font transform.

Member Data Documentation

◆ Attrib

TypefaceAttrib CartoTypeCore::FontSpec::Attrib

The typeface attributes: name, style, and required scripts.

◆ Color

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.

◆ Instance

TypefaceInstance CartoTypeCore::FontSpec::Instance

The instance specification: size (expressed as a transform) and glyph rendering method (e.g., anti-alias versus monochrome).


The documentation for this class was generated from the following file: