class HPS::TextMetrics

The TextMetrics class is a concept class for TextMetrics related enum classes.

Public Types

enum Options

Enumerates the types of Text Metrics computations.


enumerator Default

This option will return a result equivalent to ComputeTextExtent.

enumerator Extended

Will return a result equivalent to ComputeTextExtent and includes max ascender and descender values.

enumerator PerGlyph

Same as Default, but one pair of values per character.

enumerator ExtendedPerGlyph

Same as PerGlyph, but will also inlcude ascender and descender values per character.

enum Units

Enumerates the space metrics are returned in.


enumerator Fractional

Metrics are returned as a fraction of the window size (0 - 1).