Mako 8.2.0 API
MakoCore SDK API Documentation
Loading...
Searching...
No Matches
CIndicesGlyph Class Reference

Utility code allowing the simpler manipulation of glyph glusters represented by the UnicodeString and Indices entries of an IDOMGlyphs object. More...

#include <edl/iglyphsclusters.h>

Public Member Functions

 CIndicesGlyph ()
bool operator== (const CIndicesGlyph &other) const
bool similar (const CIndicesGlyph &other, float eps) const
 Check to see if this indices glyph entry is similar to another with regard to metrics. Non-metrics information (such as glyph ids) must be equivalent for two indices glyphs to be considered similar.
bool operator!= (const CIndicesGlyph &other) const

Public Attributes

bool hasGlyphId
 True if the glyphId entry is valid.
uint16 glyphId
 The glyph ID of the glyph, if hasGlyphId is true.
bool hasAdvance
 True if the advance entry is valid.
float advance
 The advance, in hundredths of an em, if hasAdvance is true.
bool hasUOffset
 True if the uOffset entry is valid.
float uOffset
 The u offset of the glyph, in hundredths of an em, if hasUOffset is true.
bool hasVOffset
 True if the vOffset entry is valid.
float vOffset
 The v offset of the glyph, in hundredths of an em, if hasVOffset is true.

Detailed Description

Utility code allowing the simpler manipulation of glyph glusters represented by the UnicodeString and Indices entries of an IDOMGlyphs object.

A glyph unit, populated from an entry in an Indices string. All entries are optional, and their presence is flagged with hasXxxxx entries.

Constructor & Destructor Documentation

◆ CIndicesGlyph()

CIndicesGlyph::CIndicesGlyph ( )
inline

Member Function Documentation

◆ operator!=()

bool CIndicesGlyph::operator!= ( const CIndicesGlyph & other) const
inline

◆ operator==()

bool CIndicesGlyph::operator== ( const CIndicesGlyph & other) const
inline

◆ similar()

bool CIndicesGlyph::similar ( const CIndicesGlyph & other,
float eps ) const
inline

Check to see if this indices glyph entry is similar to another with regard to metrics. Non-metrics information (such as glyph ids) must be equivalent for two indices glyphs to be considered similar.

Parameters
otherThe indices glyph to compare.
epsThe epsilon limit for metrics similarity, in hundredths of an em.
Returns
bool True if similar, false otherwise.

Member Data Documentation

◆ advance

float CIndicesGlyph::advance

The advance, in hundredths of an em, if hasAdvance is true.

◆ glyphId

uint16 CIndicesGlyph::glyphId

The glyph ID of the glyph, if hasGlyphId is true.

◆ hasAdvance

bool CIndicesGlyph::hasAdvance

True if the advance entry is valid.

◆ hasGlyphId

bool CIndicesGlyph::hasGlyphId

True if the glyphId entry is valid.

◆ hasUOffset

bool CIndicesGlyph::hasUOffset

True if the uOffset entry is valid.

◆ hasVOffset

bool CIndicesGlyph::hasVOffset

True if the vOffset entry is valid.

◆ uOffset

float CIndicesGlyph::uOffset

The u offset of the glyph, in hundredths of an em, if hasUOffset is true.

◆ vOffset

float CIndicesGlyph::vOffset

The v offset of the glyph, in hundredths of an em, if hasVOffset is true.


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