character of the default face. */
int space_width;
+ int average_width;
+
/** The default ascent and descent of a line. It is ascent and
descent of ASCII font of the default face. */
int ascent, descent;
/** Logical OR of enum MDeviceType. */
int device_type;
+ /** Resolution (dots per inch) of the device. */
+ int dpi;
+
/** Correction of functions to manipulate the device. */
MDeviceDriver *driver;
GLYPH_TYPE_MAX
};
+enum glyph_category
+ {
+ GLYPH_CATEGORY_NORMAL,
+ GLYPH_CATEGORY_MODIFIER,
+ GLYPH_CATEGORY_FORMATTER
+ };
+
typedef struct
{
int pos, to;
int c;
unsigned code;
- MSymbol category;
MRealizedFace *rface;
short width, ascent, descent, lbearing, rbearing;
short xoff, yoff;
unsigned right_padding : 1;
unsigned otf_encoded : 1;
unsigned bidi_level : 6;
+ enum glyph_category category : 2;
enum glyph_type type : 3;
int combining_code;
} MGlyph;
typedef struct MGlyphString MGlyphString;
-typedef struct MFontDriver MFontDriver;
-
typedef struct
{
short x, y;