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

#include <cartotype_graphics_context.h>

Public Member Functions

bool operator== (const TTypefaceInstance &aInstance) const
bool operator!= (const TTypefaceInstance &aInstance) const
void SetToSize (double aSize)

Public Attributes

double iSize = 12
TTransform iTransform
uint32_t iFlags = KAntiAlias

Static Public Attributes

static constexpr uint32_t KAntiAlias = 1

Detailed Description

The changeable attributes of a typeface that determine how it creates glyphs.

Member Function Documentation

◆ operator!=()

bool CartoType::TTypefaceInstance::operator!= ( const TTypefaceInstance aInstance) const

The inequality operator.

◆ operator==()

bool CartoType::TTypefaceInstance::operator== ( const TTypefaceInstance aInstance) const

The equality operator.

◆ SetToSize()

void CartoType::TTypefaceInstance::SetToSize ( double  aSize)

Sets a typeface instance's size in pixels per em to aSize and resets the font transform to identity.

Member Data Documentation

◆ iFlags

uint32_t CartoType::TTypefaceInstance::iFlags = KAntiAlias

Flags controlling anti-aliasing and glyph effects.

◆ iSize

double CartoType::TTypefaceInstance::iSize = 12

The size in pixels per em, before any transform is applied.

◆ iTransform

TTransform CartoType::TTypefaceInstance::iTransform

The transform used to apply rotation and slant. This transform also affects the baseline.

◆ KAntiAlias

constexpr uint32_t CartoType::TTypefaceInstance::KAntiAlias = 1

A flag used in iFlags.

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