Mercurial > emacs
changeset 90482:48a50b114c17
(QCspacing, QCdpi): Extern them.
(enum font_spacing): New enum.
(FONT_PIXEL_SIZE_QUANTUM): New macro.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 19 Jun 2006 12:44:41 +0000 |
parents | 93690200f520 |
children | 72186e5bf7ed |
files | src/font.h |
diffstat | 1 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;