CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | Public Attributes | List of all members
CartoType::TFontSpec Class Reference

#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
 

Detailed Description

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

Member Function Documentation

◆ operator!=()

bool CartoType::TFontSpec::operator!= ( const TFontSpec aFontSpec) const
inline

The inequality operator.

◆ operator==()

bool CartoType::TFontSpec::operator== ( const TFontSpec aFontSpec) const
inline

The equality operator.

◆ SetName()

void CartoType::TFontSpec::SetName ( const CString aName)
inline

Sets the typeface name to aName.

◆ SetToSize()

void CartoType::TFontSpec::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 CartoType::TFontSpec::Size ( ) const
inline

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

Member Data Documentation

◆ iAttrib

TTypefaceAttrib CartoType::TFontSpec::iAttrib

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

◆ iColor

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.

◆ iInstance

TTypefaceInstance CartoType::TFontSpec::iInstance

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: