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>
|
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.
|
|
|
CEDLVector< uint32, 5 > | unicode |
| The unicode information for the cluster as UTF-32, if present.
|
|
CIndicesGlyphList | glyphs |
| The glyph information, if present.
|
|
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
◆ 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
-
other | The cluster to compare. |
eps | The 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: