# HG changeset patch # User Kenichi Handa # Date 1150721081 0 # Node ID 48a50b114c1745daa0f3ef5b750c48549a4357f6 # Parent 93690200f520bb5dc3a1a83d7008a050c4c5c56d (QCspacing, QCdpi): Extern them. (enum font_spacing): New enum. (FONT_PIXEL_SIZE_QUANTUM): New macro. diff -r 93690200f520 -r 48a50b114c17 src/font.h --- a/src/font.h Mon Jun 19 12:43:59 2006 +0000 +++ b/src/font.h Mon Jun 19 12:44:41 2006 +0000 @@ -128,7 +128,7 @@ FONT_ENTITY_MAX }; -extern Lisp_Object QCotf, QClanguage, QCscript; +extern Lisp_Object QCspacing, QCdpi, QCotf, QClanguage, QCscript; /* Important character set symbols. */ extern Lisp_Object Qiso8859_1, Qiso10646_1, Qunicode_bmp; @@ -176,6 +176,14 @@ font-driver. */ }; +enum font_spacing + { + FONT_SPACING_PROPORTIONAL = 0, + FONT_SPACING_DUAL = 90, + FONT_SPACING_MONO = 100, + FONT_SPACING_CHARCELL = 110 + }; + struct font_metrics { short lbearing, rbearing, width, ascent, descent; @@ -223,6 +231,10 @@ font = XSAVE_VALUE (x)->pointer; \ } while (0) +/* Ignore the difference of font pixel sizes less than or equal to + this value. */ +#define FONT_PIXEL_SIZE_QUANTUM 1 + struct face; struct composition;