Share via


LINE_METRICS Enumeration

LINE_METRICS Enumeration

Defines constant values that represent the lines found in a segment.

Declaration

[C++]

typedef enum enumLINE_METRICS
{
  LM_BASELINE = 0,
  LM_MIDLINE = 1,
  LM_ASCENDER = 2,
  LM_DESCENDER = 3
} LINE_METRICS;

Members

Name Description
LM_BASELINE Requests baseline metrics. For an example that shows the baseline of a segment, see the Remarks section.
LM_MIDLINE Requests midline metrics. For an example that shows the midline of a segment, see the Remarks section.
LM_ASCENDER Requests ascender metrics. For an example that shows the ascender line of a segment, see the Remarks section.
LM_DESCENDER Requests descender metrics. For an example that shows the descender line of a segment, see the Remarks section.

Remarks

The following example shows the baseline, midline, ascender line, and descender line of a segment.

tpcsdkua_metric.gif

For East Asian languages written horizontally, the descender line and baseline are located at the bottom of the characters and the ascender line at the top of the characters. The midline is between the ascender and descender lines.

For East Asian languages written vertically, the descender line is the leftmost edge, the ascender line is the rightmost edge, and baseline is between the descender and ascender lines. The midline for komoji characters is the leftmost edge and the location for punctuation characters depends on the character.