aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c47
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 *,
493static Lisp_Object resolve_face_name P_ ((Lisp_Object, int)); 493static Lisp_Object resolve_face_name P_ ((Lisp_Object, int));
494static int may_use_scalable_font_p P_ ((const char *)); 494static int may_use_scalable_font_p P_ ((const char *));
495static void set_font_frame_param P_ ((Lisp_Object, Lisp_Object)); 495static void set_font_frame_param P_ ((Lisp_Object, Lisp_Object));
496static int better_font_p P_ ((int *, struct font_name *, struct font_name *,
497 int, int));
498static int x_face_list_fonts P_ ((struct frame *, char *,
499 struct font_name **, int, int));
500static int get_lface_attributes P_ ((struct frame *, Lisp_Object, Lisp_Object *, int)); 496static int get_lface_attributes P_ ((struct frame *, Lisp_Object, Lisp_Object *, int));
501static int load_pixmap P_ ((struct frame *, Lisp_Object, unsigned *, unsigned *)); 497static int load_pixmap P_ ((struct frame *, Lisp_Object, unsigned *, unsigned *));
502static unsigned char *xstrlwr P_ ((unsigned char *)); 498static unsigned char *xstrlwr P_ ((unsigned char *));
503static struct frame *frame_or_selected_frame P_ ((Lisp_Object, int)); 499static struct frame *frame_or_selected_frame P_ ((Lisp_Object, int));
504static void load_face_font P_ ((struct frame *, struct face *));
505static void load_face_colors P_ ((struct frame *, struct face *, Lisp_Object *)); 500static void load_face_colors P_ ((struct frame *, struct face *, Lisp_Object *));
506static void free_face_colors P_ ((struct frame *, struct face *)); 501static void free_face_colors P_ ((struct frame *, struct face *));
507static int face_color_gray_p P_ ((struct frame *, char *)); 502static int face_color_gray_p P_ ((struct frame *, char *));
508static char *build_font_name P_ ((struct font_name *));
509static void free_font_names P_ ((struct font_name *, int));
510static int sorted_font_list P_ ((struct frame *, char *,
511 int (*cmpfn) P_ ((const void *, const void *)),
512 struct font_name **));
513static int font_list_1 P_ ((struct frame *, Lisp_Object, Lisp_Object,
514 Lisp_Object, struct font_name **));
515static int font_list P_ ((struct frame *, Lisp_Object, Lisp_Object,
516 Lisp_Object, struct font_name **));
517static int try_font_list P_ ((struct frame *, Lisp_Object,
518 Lisp_Object, Lisp_Object, struct font_name **));
519static int try_alternative_families P_ ((struct frame *f, Lisp_Object,
520 Lisp_Object, struct font_name **));
521static int cmp_font_names P_ ((const void *, const void *));
522static struct face *realize_face P_ ((struct face_cache *, Lisp_Object *, 503static struct face *realize_face P_ ((struct face_cache *, Lisp_Object *,
523 int)); 504 int));
524static struct face *realize_non_ascii_face P_ ((struct frame *, Lisp_Object, 505static 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));
546static Lisp_Object lface_from_face_name P_ ((struct frame *, Lisp_Object, int)); 527static Lisp_Object lface_from_face_name P_ ((struct frame *, Lisp_Object, int));
547static struct face *make_realized_face P_ ((Lisp_Object *)); 528static struct face *make_realized_face P_ ((Lisp_Object *));
548static char *best_matching_font P_ ((struct frame *, Lisp_Object *,
549 struct font_name *, int, int, int *));
550static void cache_face P_ ((struct face_cache *, struct face *, unsigned)); 529static void cache_face P_ ((struct face_cache *, struct face *, unsigned));
551static void uncache_face P_ ((struct face_cache *, struct face *)); 530static 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
825static unsigned char *
826xstrlwr (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
1713static 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