diff options
| author | Chong Yidong | 2012-08-16 14:35:13 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-08-16 14:35:13 +0800 |
| commit | 032a42c88d421ee434e783e29bf2cde3d6a81e7b (patch) | |
| tree | 24fa7910668c8e4c92da4cd50d753a9a0358c64d /src/font.h | |
| parent | 1c308380b6f29e389dc10d418b9203a74d64dce2 (diff) | |
| download | emacs-032a42c88d421ee434e783e29bf2cde3d6a81e7b.tar.gz emacs-032a42c88d421ee434e783e29bf2cde3d6a81e7b.zip | |
For Xft and X font backends, set omitted max_width font fields.
* src/xfont.c (xfont_open):
* src/xftfont.c (xftfont_open): Set the font's max_width field.
* src/font.h (struct font): Update comments.
Diffstat (limited to 'src/font.h')
| -rw-r--r-- | src/font.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/font.h b/src/font.h index 3e9af6df235..6e9387f7632 100644 --- a/src/font.h +++ b/src/font.h | |||
| @@ -284,8 +284,11 @@ struct font | |||
| 284 | 284 | ||
| 285 | /* Beyond here, there should be no more Lisp_Object components. */ | 285 | /* Beyond here, there should be no more Lisp_Object components. */ |
| 286 | 286 | ||
| 287 | /* Maximum bound width over all existing characters of the font. On | 287 | /* Minimum and maximum glyph widths, in pixels. Some font backends, |
| 288 | X window, this is same as (font->max_bounds.width). */ | 288 | such as xft, lack the information to easily compute minimum and |
| 289 | maximum widths over all characters; in that case, these values | ||
| 290 | are approximate. */ | ||
| 291 | int min_width; | ||
| 289 | int max_width; | 292 | int max_width; |
| 290 | 293 | ||
| 291 | /* By which pixel size the font is opened. */ | 294 | /* By which pixel size the font is opened. */ |
| @@ -301,13 +304,10 @@ struct font | |||
| 301 | 304 | ||
| 302 | /* Average width of glyphs in the font. If the font itself doesn't | 305 | /* Average width of glyphs in the font. If the font itself doesn't |
| 303 | have that information but has glyphs of ASCII characters, the | 306 | have that information but has glyphs of ASCII characters, the |
| 304 | value is the average with of those glyphs. Otherwise, the value | 307 | value is the average width of those glyphs. Otherwise, the value |
| 305 | is 0. */ | 308 | is 0. */ |
| 306 | int average_width; | 309 | int average_width; |
| 307 | 310 | ||
| 308 | /* Minimum glyph width (in pixels). */ | ||
| 309 | int min_width; | ||
| 310 | |||
| 311 | /* Ascent and descent of the font (in pixels). */ | 311 | /* Ascent and descent of the font (in pixels). */ |
| 312 | int ascent, descent; | 312 | int ascent, descent; |
| 313 | 313 | ||