diff options
| -rw-r--r-- | src/dispextern.h | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index 2629dfb96dc..9605d55e7bb 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -1265,10 +1265,8 @@ struct face | |||
| 1265 | reallocated. */ | 1265 | reallocated. */ |
| 1266 | int font_info_id; | 1266 | int font_info_id; |
| 1267 | 1267 | ||
| 1268 | /* Fontset ID if this face uses a fontset, or -1. This is only >= 0 | 1268 | /* Fontset ID if for this face's fontset. Non-ASCII faces derived |
| 1269 | if the face was realized for a composition sequence. | 1269 | from the same ASCII face have the same fontset. */ |
| 1270 | Otherwise, a specific font is loaded from the set of fonts | ||
| 1271 | specified by the fontset given by the family attribute of the face. */ | ||
| 1272 | int fontset; | 1270 | int fontset; |
| 1273 | 1271 | ||
| 1274 | /* Pixmap width and height. */ | 1272 | /* Pixmap width and height. */ |
| @@ -1300,13 +1298,6 @@ struct face | |||
| 1300 | /* The hash value of this face. */ | 1298 | /* The hash value of this face. */ |
| 1301 | unsigned hash; | 1299 | unsigned hash; |
| 1302 | 1300 | ||
| 1303 | /* The charset for which this face was realized if it was realized | ||
| 1304 | for use in multibyte text. If fontset >= 0, this is the charset | ||
| 1305 | of the first character of the composition sequence. A value of | ||
| 1306 | charset < 0 means the face was realized for use in unibyte text | ||
| 1307 | where the idea of Emacs charsets isn't applicable. */ | ||
| 1308 | int charset; | ||
| 1309 | |||
| 1310 | /* Non-zero if text in this face should be underlined, overlined, | 1301 | /* Non-zero if text in this face should be underlined, overlined, |
| 1311 | strike-through or have a box drawn around it. */ | 1302 | strike-through or have a box drawn around it. */ |
| 1312 | unsigned underline_p : 1; | 1303 | unsigned underline_p : 1; |
| @@ -1349,8 +1340,9 @@ struct face | |||
| 1349 | /* Next and previous face in hash collision list of face cache. */ | 1340 | /* Next and previous face in hash collision list of face cache. */ |
| 1350 | struct face *next, *prev; | 1341 | struct face *next, *prev; |
| 1351 | 1342 | ||
| 1352 | /* If this face is for ASCII characters, this points this face | 1343 | /* If this face is an ASCII face, this points to this face itself. |
| 1353 | itself. Otherwise, this points a face for ASCII characters. */ | 1344 | Otherwise, this points to an ASCII face that has the same |
| 1345 | attributes except the font. */ | ||
| 1354 | struct face *ascii_face; | 1346 | struct face *ascii_face; |
| 1355 | }; | 1347 | }; |
| 1356 | 1348 | ||
| @@ -1437,7 +1429,7 @@ struct face_cache | |||
| 1437 | /* Non-zero if FACE is suitable for displaying character CHAR. */ | 1429 | /* Non-zero if FACE is suitable for displaying character CHAR. */ |
| 1438 | 1430 | ||
| 1439 | #define FACE_SUITABLE_FOR_CHAR_P(FACE, CHAR) \ | 1431 | #define FACE_SUITABLE_FOR_CHAR_P(FACE, CHAR) \ |
| 1440 | (SINGLE_BYTE_CHAR_P (CHAR) \ | 1432 | (ASCII_CHAR_P (CHAR) \ |
| 1441 | ? (FACE) == (FACE)->ascii_face \ | 1433 | ? (FACE) == (FACE)->ascii_face \ |
| 1442 | : face_suitable_for_char_p ((FACE), (CHAR))) | 1434 | : face_suitable_for_char_p ((FACE), (CHAR))) |
| 1443 | 1435 | ||
| @@ -1446,7 +1438,7 @@ struct face_cache | |||
| 1446 | This macro is only meaningful for multibyte character CHAR. */ | 1438 | This macro is only meaningful for multibyte character CHAR. */ |
| 1447 | 1439 | ||
| 1448 | #define FACE_FOR_CHAR(F, FACE, CHAR) \ | 1440 | #define FACE_FOR_CHAR(F, FACE, CHAR) \ |
| 1449 | (SINGLE_BYTE_CHAR_P (CHAR) \ | 1441 | (ASCII_CHAR_P (CHAR) \ |
| 1450 | ? (FACE)->ascii_face->id \ | 1442 | ? (FACE)->ascii_face->id \ |
| 1451 | : face_for_char ((F), (FACE), (CHAR))) | 1443 | : face_for_char ((F), (FACE), (CHAR))) |
| 1452 | 1444 | ||
| @@ -2276,14 +2268,16 @@ unsigned long load_color P_ ((struct frame *, struct face *, Lisp_Object, | |||
| 2276 | enum lface_attribute_index)); | 2268 | enum lface_attribute_index)); |
| 2277 | void unload_color P_ ((struct frame *, unsigned long)); | 2269 | void unload_color P_ ((struct frame *, unsigned long)); |
| 2278 | int frame_update_line_height P_ ((struct frame *)); | 2270 | int frame_update_line_height P_ ((struct frame *)); |
| 2271 | char *choose_face_font P_ ((struct frame *, Lisp_Object *, Lisp_Object)); | ||
| 2279 | int ascii_face_of_lisp_face P_ ((struct frame *, int)); | 2272 | int ascii_face_of_lisp_face P_ ((struct frame *, int)); |
| 2280 | void prepare_face_for_display P_ ((struct frame *, struct face *)); | 2273 | void prepare_face_for_display P_ ((struct frame *, struct face *)); |
| 2281 | int xstricmp P_ ((unsigned char *, unsigned char *)); | 2274 | int xstricmp P_ ((unsigned char *, unsigned char *)); |
| 2282 | int lookup_face P_ ((struct frame *, Lisp_Object *, int, struct face *)); | 2275 | int lookup_face P_ ((struct frame *, Lisp_Object *)); |
| 2283 | int lookup_named_face P_ ((struct frame *, Lisp_Object, int)); | 2276 | int lookup_non_ascii_face P_ ((struct frame *, int, struct face *)); |
| 2277 | int lookup_named_face P_ ((struct frame *, Lisp_Object)); | ||
| 2284 | int smaller_face P_ ((struct frame *, int, int)); | 2278 | int smaller_face P_ ((struct frame *, int, int)); |
| 2285 | int face_with_height P_ ((struct frame *, int, int)); | 2279 | int face_with_height P_ ((struct frame *, int, int)); |
| 2286 | int lookup_derived_face P_ ((struct frame *, Lisp_Object, int, int)); | 2280 | int lookup_derived_face P_ ((struct frame *, Lisp_Object, int)); |
| 2287 | void init_frame_faces P_ ((struct frame *)); | 2281 | void init_frame_faces P_ ((struct frame *)); |
| 2288 | void free_frame_faces P_ ((struct frame *)); | 2282 | void free_frame_faces P_ ((struct frame *)); |
| 2289 | void recompute_basic_faces P_ ((struct frame *)); | 2283 | void recompute_basic_faces P_ ((struct frame *)); |
| @@ -2298,7 +2292,8 @@ void free_realized_face P_ ((struct frame *, struct face *)); | |||
| 2298 | extern Lisp_Object Qforeground_color, Qbackground_color; | 2292 | extern Lisp_Object Qforeground_color, Qbackground_color; |
| 2299 | extern char unspecified_fg[], unspecified_bg[]; | 2293 | extern char unspecified_fg[], unspecified_bg[]; |
| 2300 | extern void check_face_attributes P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); | 2294 | extern void check_face_attributes P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); |
| 2301 | extern Lisp_Object generate_ascii_font P_ ((Lisp_Object, Lisp_Object)); | 2295 | extern Lisp_Object generate_ascii_font_name P_ ((Lisp_Object, Lisp_Object)); |
| 2296 | extern Lisp_Object font_name_registry P_ ((Lisp_Object)); | ||
| 2302 | 2297 | ||
| 2303 | /* Defined in xfns.c */ | 2298 | /* Defined in xfns.c */ |
| 2304 | 2299 | ||