Mako 7.5.0 API
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 <iglyphsclusters.h>

Public Member Functions

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.
 

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.

Member Function Documentation

◆ 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.

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