The m17n Library: MDrawGlyphInfo Struct Reference

# MDrawGlyphInfo Struct Reference
[Drawing]

Type of information about a glyph. More...

## Data Fields
int | from
int | to
int | line_from
int | line_to
int | x
int | y
MDrawMetric | metrics
MFont * | font
int | prev_from
int | next_to
int | left_from
int | left_to
int | right_from
int | right_to
int | logical_width

## Detailed Description

Type of information about a glyph.

The type MDrawGlyphInfo is the structure that contains information about a glyph. It is used by mdraw_glyph_info().

## Field Documentation

int MDrawGlyphInfo::from

Start position of character range corresponding to the glyph.

int MDrawGlyphInfo::to

End position of character range corresponding to the glyph.

int MDrawGlyphInfo::line_from

Start position of character range corresponding to the line of the glyph.

int MDrawGlyphInfo::line_to

End position of character range corresponding to the line of the glyph.

int MDrawGlyphInfo::x

X coordinates of the glyph.

int MDrawGlyphInfo::y

Y coordinates of the glyph.

MDrawMetric MDrawGlyphInfo::metrics

Metric of the glyph.

MFont* MDrawGlyphInfo::font

Font used for the glyph. Set to NULL if no font is found for the glyph.

int MDrawGlyphInfo::prev_from

Character ranges corresponding to logically previous glyphs. Note that we do not need the members prev_to because it must be the same as the member <from>.

int MDrawGlyphInfo::next_to

Character ranges corresponding to logically next glyphs. Note that we do not need the members next_from because it must be the same as the member <to> respectively.

int MDrawGlyphInfo::left_from

Start position of character ranges corresponding to visually left glyphs.

int MDrawGlyphInfo::left_to

End position of character ranges corresponding to visually left glyphs.

int MDrawGlyphInfo::right_from

Start position of character ranges corresponding to visually right glyphs.

int MDrawGlyphInfo::right_to

End position of character ranges corresponding to visually left glyphs.

int MDrawGlyphInfo::logical_width

Logical width of the glyph. Nominal distance to the next glyph.