Mako 7.5.0 API
Loading...
Searching...
No Matches
CGlyphsCluster Class Reference

A single cluster generated from the parallel Indices and Unicode strings present in an IDOMGlyphs node. This represents the smallest logical unit of text. Here, a single cluster may represent: More...

#include <iglyphsclusters.h>

Public Member Functions

bool similar (const CGlyphsCluster &other, float eps) const
 Check to see if this cluster is similar to another with regard to metrics. Non-metrics information (such as glyph ids and unicode) must be equivalent for two clusters to be considered similar.
 

Public Attributes

CEDLVector< uint32, 5 > unicode
 The unicode information for the cluster as UTF-32, if present.
 
CIndicesGlyphList glyphs
 The glyph information, if present.
 

Detailed Description

A single cluster generated from the parallel Indices and Unicode strings present in an IDOMGlyphs node. This represents the smallest logical unit of text. Here, a single cluster may represent:

  • a 1:1 mapping between a unicode value and a glyph
  • a N:1 mapping between a number of unicode values and a glyph, such as where unicode combining characters are used, but represented with a single glyph
  • a 1:N mapping where a single unicode value is represented by multiple glyphs, such as where composite characters are used
  • a N:N mapping where multiple unicode characters are represented with multiple glyphs for complex language situations
  • cases where a unicode value is present but no glyph is specified (instead a glyph is selected from the font via the unicode character map)
  • cases where a glyph is specified but with no unicode information

Member Function Documentation

◆ similar()

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

Check to see if this cluster is similar to another with regard to metrics. Non-metrics information (such as glyph ids and unicode) must be equivalent for two clusters to be considered similar.

Parameters
otherThe cluster 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: