aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dispextern.h43
1 files changed, 7 insertions, 36 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index 88373c7dddc..602a3834b55 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -1161,10 +1161,7 @@ struct glyph_string
1161 struct face *face; 1161 struct face *face;
1162 1162
1163 /* Font in which this string is to be drawn. */ 1163 /* Font in which this string is to be drawn. */
1164 XFontStruct *font; 1164 struct font *font;
1165
1166 /* Font info for this string. */
1167 struct font_info *font_info;
1168 1165
1169 /* Non-null means this string describes (part of) a composition. 1166 /* Non-null means this string describes (part of) a composition.
1170 All characters from char2b are drawn composed. */ 1167 All characters from char2b are drawn composed. */
@@ -1243,6 +1240,10 @@ struct glyph_string
1243 /* Number of clipping areas. */ 1240 /* Number of clipping areas. */
1244 int num_clips; 1241 int num_clips;
1245 1242
1243 int underline_position;
1244
1245 int underline_thickness;
1246
1246 struct glyph_string *next, *prev; 1247 struct glyph_string *next, *prev;
1247}; 1248};
1248 1249
@@ -1413,7 +1414,6 @@ enum lface_attribute_index
1413 LFACE_BOX_INDEX, 1414 LFACE_BOX_INDEX,
1414 LFACE_FONT_INDEX, 1415 LFACE_FONT_INDEX,
1415 LFACE_INHERIT_INDEX, 1416 LFACE_INHERIT_INDEX,
1416 LFACE_AVGWIDTH_INDEX,
1417 LFACE_FONTSET_INDEX, 1417 LFACE_FONTSET_INDEX,
1418 LFACE_VECTOR_SIZE 1418 LFACE_VECTOR_SIZE
1419}; 1419};
@@ -1456,12 +1456,6 @@ struct face
1456 drawing the characters in this face. */ 1456 drawing the characters in this face. */
1457 GC gc; 1457 GC gc;
1458 1458
1459 /* Font used for this face, or null if the font could not be loaded
1460 for some reason. This points to a `font' slot of a struct
1461 font_info, and we should not call XFreeFont on it because the
1462 font may still be used somewhere else. */
1463 XFontStruct *font;
1464
1465 /* Background stipple or bitmap used for this face. This is 1459 /* Background stipple or bitmap used for this face. This is
1466 an id as returned from load_pixmap. */ 1460 an id as returned from load_pixmap. */
1467 int stipple; 1461 int stipple;
@@ -1489,17 +1483,7 @@ struct face
1489 unsigned long strike_through_color; 1483 unsigned long strike_through_color;
1490 unsigned long box_color; 1484 unsigned long box_color;
1491 1485
1492 /* The font's name. This points to a `name' of a font_info, and it 1486 struct font *font;
1493 must not be freed. */
1494 char *font_name;
1495
1496 /* Font info ID for this face's font. An ID is stored here because
1497 pointers to font_info structures may change. The reason is that
1498 they are pointers into a font table vector that is itself
1499 reallocated. */
1500 int font_info_id;
1501
1502 struct font_info *font_info;
1503 1487
1504 /* Fontset ID if for this face's fontset. Non-ASCII faces derived 1488 /* Fontset ID if for this face's fontset. Non-ASCII faces derived
1505 from the same ASCII face have the same fontset. */ 1489 from the same ASCII face have the same fontset. */
@@ -2351,19 +2335,6 @@ struct redisplay_interface
2351 int h, int wd)); 2335 int h, int wd));
2352 void (*destroy_fringe_bitmap) P_ ((int which)); 2336 void (*destroy_fringe_bitmap) P_ ((int which));
2353 2337
2354/* Get metrics of character CHAR2B in FONT of type FONT_TYPE.
2355 Value is null if CHAR2B is not contained in the font. */
2356 XCharStruct * (*per_char_metric) P_ ((XFontStruct *font, XChar2b *char2b,
2357 int font_type));
2358
2359/* Encode CHAR2B using encoding information from FONT_INFO. CHAR2B is
2360 the two-byte form of C. Encoding is returned in *CHAR2B. If
2361 TWO_BYTE_P is non-null, return non-zero there if font is two-byte. */
2362 int (*encode_char) P_ ((int c, XChar2b *char2b,
2363 struct font_info *font_into,
2364 struct charset *charset,
2365 int *two_byte_p));
2366
2367/* Compute left and right overhang of glyph string S. 2338/* Compute left and right overhang of glyph string S.
2368 A NULL pointer if platform does not support this. */ 2339 A NULL pointer if platform does not support this. */
2369 void (*compute_glyph_string_overhangs) P_ ((struct glyph_string *s)); 2340 void (*compute_glyph_string_overhangs) P_ ((struct glyph_string *s));
@@ -2737,7 +2708,7 @@ extern int unibyte_display_via_language_environment;
2737extern void reseat_at_previous_visible_line_start P_ ((struct it *)); 2708extern void reseat_at_previous_visible_line_start P_ ((struct it *));
2738 2709
2739extern int calc_pixel_width_or_height P_ ((double *, struct it *, Lisp_Object, 2710extern int calc_pixel_width_or_height P_ ((double *, struct it *, Lisp_Object,
2740 /* XFontStruct */ void *, int, int *)); 2711 struct font *, int, int *));
2741 2712
2742#ifdef HAVE_WINDOW_SYSTEM 2713#ifdef HAVE_WINDOW_SYSTEM
2743 2714