The m17n Library 1.8.4
Loading...
Searching...
No Matches
Data Fields
MFLTGlyph Struct Reference

Type of information about a glyph. More...

#include <m17n-flt.h>

Data Fields

int c
 
unsigned int code
 
int from
 
int to
 
int xadv
 
int yadv
 
int ascent
 
int descent
 
int lbearing
 
int rbearing
 
int xoff
 
int yoff
 
unsigned encoded: 1
 
unsigned measured: 1
 
unsigned adjusted: 1
 
unsigned internal: 30
 

Detailed Description

Type of information about a glyph.

The type MFLTGlyph is the structure that contains information about a glyph. The members c and encoded are the members to be set appropriately before calling the functions mflt_find() and mflt_run(). And, if encoded is set to 1, the member code should also be set.

Field Documentation

◆ c

int MFLTGlyph::c

Character code (Unicode) of the glyph.

◆ code

unsigned int MFLTGlyph::code

Glyph ID of the glyph in the font.

◆ from

int MFLTGlyph::from

Starting index of the run in MFLTGlyphString that is replaced by this glyph.

◆ to

int MFLTGlyph::to

Ending index of the run in MFLTGlyphString that is replaced by this glyph.

◆ xadv

int MFLTGlyph::xadv

Advance width for horizontal layout expressed in 26.6 fractional pixel format.

◆ yadv

int MFLTGlyph::yadv

Advance height for vertical layout expressed in 26.6 fractional pixel format.

◆ ascent

int MFLTGlyph::ascent

Ink metrics of the glyph expressed in 26.6 fractional pixel format.

◆ descent

int MFLTGlyph::descent

◆ lbearing

int MFLTGlyph::lbearing

◆ rbearing

int MFLTGlyph::rbearing

◆ xoff

int MFLTGlyph::xoff

Horizontal and vertical adjustments for the glyph positioning expressed in 26.6 fractional pixel format.

◆ yoff

int MFLTGlyph::yoff

◆ encoded

unsigned MFLTGlyph::encoded

Flag to tell whether the member <code> has already been set to a glyph ID in the font.

◆ measured

unsigned MFLTGlyph::measured

Flag to tell if the metrics of the glyph (members <xadv> thru <rbearing>) are already calculated.

◆ adjusted

unsigned MFLTGlyph::adjusted

Flag to tell if the metrics of the glyph is adjusted, i.e. <xadv> or <yadv> is different from the normal size, or <xoff> or <yoff> is nonzero.

◆ internal

unsigned MFLTGlyph::internal

For m17n-lib's internal use only.


m17n-lib Home