aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/font.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/font.h b/src/font.h
index f3bf8451162..34416bbf9ad 100644
--- a/src/font.h
+++ b/src/font.h
@@ -128,7 +128,7 @@ enum font_property_index
128 FONT_ENTITY_MAX 128 FONT_ENTITY_MAX
129 }; 129 };
130 130
131extern Lisp_Object QCotf, QClanguage, QCscript; 131extern Lisp_Object QCspacing, QCdpi, QCotf, QClanguage, QCscript;
132 132
133/* Important character set symbols. */ 133/* Important character set symbols. */
134extern Lisp_Object Qiso8859_1, Qiso10646_1, Qunicode_bmp; 134extern Lisp_Object Qiso8859_1, Qiso10646_1, Qunicode_bmp;
@@ -176,6 +176,14 @@ struct font
176 font-driver. */ 176 font-driver. */
177}; 177};
178 178
179enum font_spacing
180 {
181 FONT_SPACING_PROPORTIONAL = 0,
182 FONT_SPACING_DUAL = 90,
183 FONT_SPACING_MONO = 100,
184 FONT_SPACING_CHARCELL = 110
185 };
186
179struct font_metrics 187struct font_metrics
180{ 188{
181 short lbearing, rbearing, width, ascent, descent; 189 short lbearing, rbearing, width, ascent, descent;
@@ -223,6 +231,10 @@ struct font_bitmap
223 font = XSAVE_VALUE (x)->pointer; \ 231 font = XSAVE_VALUE (x)->pointer; \
224 } while (0) 232 } while (0)
225 233
234/* Ignore the difference of font pixel sizes less than or equal to
235 this value. */
236#define FONT_PIXEL_SIZE_QUANTUM 1
237
226struct face; 238struct face;
227struct composition; 239struct composition;
228 240