diff options
| author | Kenichi Handa | 2008-05-25 11:09:53 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-05-25 11:09:53 +0000 |
| commit | a6c4ecbc324627a24ed12afe91c112c6537801ed (patch) | |
| tree | 5936c0d6726250ccaee44783158cb330a8dda555 /src | |
| parent | 951b8112ca8f04c26ba1be0c97a99a043122b39d (diff) | |
| download | emacs-a6c4ecbc324627a24ed12afe91c112c6537801ed.tar.gz emacs-a6c4ecbc324627a24ed12afe91c112c6537801ed.zip | |
*** empty log message ***
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index fca228e85df..093fde0b39a 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -493,32 +493,13 @@ static void map_tty_color P_ ((struct frame *, struct face *, | |||
| 493 | static Lisp_Object resolve_face_name P_ ((Lisp_Object, int)); | 493 | static Lisp_Object resolve_face_name P_ ((Lisp_Object, int)); |
| 494 | static int may_use_scalable_font_p P_ ((const char *)); | 494 | static int may_use_scalable_font_p P_ ((const char *)); |
| 495 | static void set_font_frame_param P_ ((Lisp_Object, Lisp_Object)); | 495 | static void set_font_frame_param P_ ((Lisp_Object, Lisp_Object)); |
| 496 | static int better_font_p P_ ((int *, struct font_name *, struct font_name *, | ||
| 497 | int, int)); | ||
| 498 | static int x_face_list_fonts P_ ((struct frame *, char *, | ||
| 499 | struct font_name **, int, int)); | ||
| 500 | static int get_lface_attributes P_ ((struct frame *, Lisp_Object, Lisp_Object *, int)); | 496 | static int get_lface_attributes P_ ((struct frame *, Lisp_Object, Lisp_Object *, int)); |
| 501 | static int load_pixmap P_ ((struct frame *, Lisp_Object, unsigned *, unsigned *)); | 497 | static int load_pixmap P_ ((struct frame *, Lisp_Object, unsigned *, unsigned *)); |
| 502 | static unsigned char *xstrlwr P_ ((unsigned char *)); | 498 | static unsigned char *xstrlwr P_ ((unsigned char *)); |
| 503 | static struct frame *frame_or_selected_frame P_ ((Lisp_Object, int)); | 499 | static struct frame *frame_or_selected_frame P_ ((Lisp_Object, int)); |
| 504 | static void load_face_font P_ ((struct frame *, struct face *)); | ||
| 505 | static void load_face_colors P_ ((struct frame *, struct face *, Lisp_Object *)); | 500 | static void load_face_colors P_ ((struct frame *, struct face *, Lisp_Object *)); |
| 506 | static void free_face_colors P_ ((struct frame *, struct face *)); | 501 | static void free_face_colors P_ ((struct frame *, struct face *)); |
| 507 | static int face_color_gray_p P_ ((struct frame *, char *)); | 502 | static int face_color_gray_p P_ ((struct frame *, char *)); |
| 508 | static char *build_font_name P_ ((struct font_name *)); | ||
| 509 | static void free_font_names P_ ((struct font_name *, int)); | ||
| 510 | static int sorted_font_list P_ ((struct frame *, char *, | ||
| 511 | int (*cmpfn) P_ ((const void *, const void *)), | ||
| 512 | struct font_name **)); | ||
| 513 | static int font_list_1 P_ ((struct frame *, Lisp_Object, Lisp_Object, | ||
| 514 | Lisp_Object, struct font_name **)); | ||
| 515 | static int font_list P_ ((struct frame *, Lisp_Object, Lisp_Object, | ||
| 516 | Lisp_Object, struct font_name **)); | ||
| 517 | static int try_font_list P_ ((struct frame *, Lisp_Object, | ||
| 518 | Lisp_Object, Lisp_Object, struct font_name **)); | ||
| 519 | static int try_alternative_families P_ ((struct frame *f, Lisp_Object, | ||
| 520 | Lisp_Object, struct font_name **)); | ||
| 521 | static int cmp_font_names P_ ((const void *, const void *)); | ||
| 522 | static struct face *realize_face P_ ((struct face_cache *, Lisp_Object *, | 503 | static struct face *realize_face P_ ((struct face_cache *, Lisp_Object *, |
| 523 | int)); | 504 | int)); |
| 524 | static struct face *realize_non_ascii_face P_ ((struct frame *, Lisp_Object, | 505 | static struct face *realize_non_ascii_face P_ ((struct frame *, Lisp_Object, |
| @@ -545,8 +526,6 @@ static int set_lface_from_font P_ ((struct frame *, Lisp_Object, Lisp_Object, | |||
| 545 | int)); | 526 | int)); |
| 546 | static Lisp_Object lface_from_face_name P_ ((struct frame *, Lisp_Object, int)); | 527 | static Lisp_Object lface_from_face_name P_ ((struct frame *, Lisp_Object, int)); |
| 547 | static struct face *make_realized_face P_ ((Lisp_Object *)); | 528 | static struct face *make_realized_face P_ ((Lisp_Object *)); |
| 548 | static char *best_matching_font P_ ((struct frame *, Lisp_Object *, | ||
| 549 | struct font_name *, int, int, int *)); | ||
| 550 | static void cache_face P_ ((struct face_cache *, struct face *, unsigned)); | 529 | static void cache_face P_ ((struct face_cache *, struct face *, unsigned)); |
| 551 | static void uncache_face P_ ((struct face_cache *, struct face *)); | 530 | static void uncache_face P_ ((struct face_cache *, struct face *)); |
| 552 | 531 | ||
| @@ -820,24 +799,6 @@ xstrcasecmp (s1, s2) | |||
| 820 | } | 799 | } |
| 821 | 800 | ||
| 822 | 801 | ||
| 823 | /* Like strlwr, which might not always be available. */ | ||
| 824 | |||
| 825 | static unsigned char * | ||
| 826 | xstrlwr (s) | ||
| 827 | unsigned char *s; | ||
| 828 | { | ||
| 829 | unsigned char *p = s; | ||
| 830 | |||
| 831 | for (p = s; *p; ++p) | ||
| 832 | /* On Mac OS X 10.3, tolower also converts non-ASCII characters | ||
| 833 | for some locales. */ | ||
| 834 | if (isascii (*p)) | ||
| 835 | *p = tolower (*p); | ||
| 836 | |||
| 837 | return s; | ||
| 838 | } | ||
| 839 | |||
| 840 | |||
| 841 | /* If FRAME is nil, return a pointer to the selected frame. | 802 | /* If FRAME is nil, return a pointer to the selected frame. |
| 842 | Otherwise, check that FRAME is a live frame, and return a pointer | 803 | Otherwise, check that FRAME is a live frame, and return a pointer |
| 843 | to it. NPARAM is the parameter number of FRAME, for | 804 | to it. NPARAM is the parameter number of FRAME, for |
| @@ -959,14 +920,11 @@ clear_face_cache (clear_fonts_p) | |||
| 959 | if (clear_fonts_p | 920 | if (clear_fonts_p |
| 960 | || ++clear_font_table_count == CLEAR_FONT_TABLE_COUNT) | 921 | || ++clear_font_table_count == CLEAR_FONT_TABLE_COUNT) |
| 961 | { | 922 | { |
| 962 | struct x_display_info *dpyinfo; | ||
| 963 | |||
| 964 | #if 0 | 923 | #if 0 |
| 965 | /* Not yet implemented. */ | 924 | /* Not yet implemented. */ |
| 966 | clear_font_cache (frame); | 925 | clear_font_cache (frame); |
| 967 | #endif | 926 | #endif |
| 968 | 927 | ||
| 969 | |||
| 970 | /* From time to time see if we can unload some fonts. This also | 928 | /* From time to time see if we can unload some fonts. This also |
| 971 | frees all realized faces on all frames. Fonts needed by | 929 | frees all realized faces on all frames. Fonts needed by |
| 972 | faces will be loaded again when faces are realized again. */ | 930 | faces will be loaded again when faces are realized again. */ |
| @@ -1707,11 +1665,6 @@ enum xlfd_swidth | |||
| 1707 | XLFD_SWIDTH_ULTRA_EXPANDED /* 90: UltraExpanded... */ | 1665 | XLFD_SWIDTH_ULTRA_EXPANDED /* 90: UltraExpanded... */ |
| 1708 | }; | 1666 | }; |
| 1709 | 1667 | ||
| 1710 | /* The frame in effect when sorting font names. Set temporarily in | ||
| 1711 | sort_fonts so that it is available in font comparison functions. */ | ||
| 1712 | |||
| 1713 | static struct frame *font_frame; | ||
| 1714 | |||
| 1715 | /* Order by which font selection chooses fonts. The default values | 1668 | /* Order by which font selection chooses fonts. The default values |
| 1716 | mean `first, find a best match for the font width, then for the | 1669 | mean `first, find a best match for the font width, then for the |
| 1717 | font height, then for weight, then for slant.' This variable can be | 1670 | font height, then for weight, then for slant.' This variable can be |