@brief Type of information about a glyph.
The type #MFLTGlyph is the structure that contains information
- about a glyph. It is used as an argument to mflt_run (). */
+ about a glyph. */
typedef struct _MFLTGlyph MFLTGlyph;
struct _MFLTGlyph
{
/***en Character code (Unicode) of the glyph. This is the sole
- member to be set before calling the function mflt_run (). */
+ member to be set before calling the functions mflt_find () and
+ mflt_run (). */
int c;
/***en Glyph-id of the font of the glyph. */
unsigned int code;
- /***en Glyph indices indicating to which original glyphs the glyph
- corresonds. */
+ /***en Glyph indices indicating the range of original glyphs. */
int from, to;
/***en Ink metrics of the glyph expressed in 26.6 fractional pixel
format. */
@brief Type of information about a glyph sequence.
The type #MFLTGlyphString is the structure that contains
- information about a sequence of glyphs. It is used as an argument
- to the callback function #drive_otf of #MFLTFont. */
+ information about a sequence of glyphs. */
typedef struct _MFLTGlyphString MFLTGlyphString;
struct _MFLTGlyphString
{
/***en The actual byte size of elements of the array pointed by the
- member #glyphs. */
+ member #glyphs. It must be greater than "sizeof (MFLTGlyph)". */
int glyph_size;
- /***en Array of glyphs. The byte size of elements may be bigger
- than the byte size of the type #MFLTGlyph. */
+ /***en Array of glyphs. */
MFLTGlyph *glyphs;
- /***en Memory for how many elements is allocated in #glyphs. */
+ /***en How many elements are allocated in #glyphs. */
int allocated;
/***en How many elements in #glyphs are in use. */
int used;
- /***en Script tag. */
+ /***en OTF Script tag. Zero means */
unsigned int script;
- /***en Langsys tag. */
+ /***en OTF Langsys tag. */
unsigned int langsys;
};
typedef struct _MFLT MFLT;
+extern MFLT *mflt_get (char *name);
+
extern MFLT *mflt_find (MFLTGlyphString *gstring, int pos, MFLTFont *font);
extern MCharTable *mflt_coverage (MFLT *flt);