HPS::TextMetrics Class Reference

#include <hps.h>

Public Types

enum  Options { Options::Default, Options::Extended, Options::PerGlyph, Options::ExtendedPerGlyph }
 
enum  Units { Units::Fractional }
 

Detailed Description

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

Member Enumeration Documentation

◆ Options

Enumerates the types of Text Metrics computations.

Enumerator
Default 

This option will return a result equivalent to ComputeTextExtent.

Extended 

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

PerGlyph 

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

ExtendedPerGlyph 

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

◆ Units

Enumerates the space metrics are returned in.

Enumerator
Fractional 

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


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