aboutsummaryrefslogtreecommitdiffstats
path: root/src/fontset.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-15 00:48:51 -0700
committerPaul Eggert2011-04-15 00:48:51 -0700
commit4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9 (patch)
treee993b231bb5555c9c961f5d0b20d90ac76f77bbd /src/fontset.c
parent1963a2e0bb07cc8dee6d27f972f93d9cfd7c6b2d (diff)
parent49093f601b69d91126aefd328ee8f6bfeb797407 (diff)
downloademacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.tar.gz
emacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.zip
Merge from mainline.
Diffstat (limited to 'src/fontset.c')
-rw-r--r--src/fontset.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/fontset.c b/src/fontset.c
index eea65535c78..a40a3dd5f9c 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -238,7 +238,7 @@ fontset_id_valid_p (int id)
238/* Macros to access special values of (realized) FONTSET. */ 238/* Macros to access special values of (realized) FONTSET. */
239#define FONTSET_BASE(fontset) XCHAR_TABLE (fontset)->extras[2] 239#define FONTSET_BASE(fontset) XCHAR_TABLE (fontset)->extras[2]
240#define FONTSET_FRAME(fontset) XCHAR_TABLE (fontset)->extras[3] 240#define FONTSET_FRAME(fontset) XCHAR_TABLE (fontset)->extras[3]
241#define FONTSET_OBJLIST(fontset) XCHAR_TABLE (fontset)->extras[4] 241/* #define FONTSET_OBJLIST(fontset) XCHAR_TABLE (fontset)->extras[4] */
242#define FONTSET_NOFONT_FACE(fontset) XCHAR_TABLE (fontset)->extras[5] 242#define FONTSET_NOFONT_FACE(fontset) XCHAR_TABLE (fontset)->extras[5]
243/* #define FONTSET_REPERTORY(fontset) XCHAR_TABLE (fontset)->extras[6] */ 243/* #define FONTSET_REPERTORY(fontset) XCHAR_TABLE (fontset)->extras[6] */
244#define FONTSET_DEFAULT(fontset) XCHAR_TABLE (fontset)->extras[7] 244#define FONTSET_DEFAULT(fontset) XCHAR_TABLE (fontset)->extras[7]
@@ -838,6 +838,7 @@ fontset_ascii (int id)
838static void 838static void
839free_realized_fontset (FRAME_PTR f, Lisp_Object fontset) 839free_realized_fontset (FRAME_PTR f, Lisp_Object fontset)
840{ 840{
841#if 0
841 Lisp_Object tail; 842 Lisp_Object tail;
842 843
843 if (0) 844 if (0)
@@ -846,6 +847,7 @@ free_realized_fontset (FRAME_PTR f, Lisp_Object fontset)
846 xassert (FONT_OBJECT_P (XCAR (tail))); 847 xassert (FONT_OBJECT_P (XCAR (tail)));
847 font_close_object (f, XCAR (tail)); 848 font_close_object (f, XCAR (tail));
848 } 849 }
850#endif
849} 851}
850 852
851/* Free fontset of FACE defined on frame F. Called from 853/* Free fontset of FACE defined on frame F. Called from
@@ -881,6 +883,7 @@ free_face_fontset (FRAME_PTR f, struct face *face)
881} 883}
882 884
883 885
886#if 0
884/* Return 1 if FACE is suitable for displaying character C. 887/* Return 1 if FACE is suitable for displaying character C.
885 Otherwise return 0. Called from the macro FACE_SUITABLE_FOR_CHAR_P 888 Otherwise return 0. Called from the macro FACE_SUITABLE_FOR_CHAR_P
886 when C is not an ASCII character. */ 889 when C is not an ASCII character. */
@@ -896,6 +899,7 @@ face_suitable_for_char_p (struct face *face, int c)
896 && INTEGERP (RFONT_DEF_FACE (rfont_def)) 899 && INTEGERP (RFONT_DEF_FACE (rfont_def))
897 && face->id == XINT (RFONT_DEF_FACE (rfont_def))); 900 && face->id == XINT (RFONT_DEF_FACE (rfont_def)));
898} 901}
902#endif
899 903
900 904
901/* Return ID of face suitable for displaying character C on frame F. 905/* Return ID of face suitable for displaying character C on frame F.
@@ -1709,7 +1713,7 @@ int
1709fontset_from_font (Lisp_Object font_object) 1713fontset_from_font (Lisp_Object font_object)
1710{ 1714{
1711 Lisp_Object font_name = font_get_name (font_object); 1715 Lisp_Object font_name = font_get_name (font_object);
1712 Lisp_Object font_spec = Fcopy_font_spec (font_object); 1716 Lisp_Object font_spec = copy_font_spec (font_object);
1713 Lisp_Object registry = AREF (font_spec, FONT_REGISTRY_INDEX); 1717 Lisp_Object registry = AREF (font_spec, FONT_REGISTRY_INDEX);
1714 Lisp_Object fontset_spec, alias, name, fontset; 1718 Lisp_Object fontset_spec, alias, name, fontset;
1715 Lisp_Object val; 1719 Lisp_Object val;
@@ -1726,7 +1730,7 @@ fontset_from_font (Lisp_Object font_object)
1726 sprintf (temp, "fontset-auto%d", num_auto_fontsets - 1); 1730 sprintf (temp, "fontset-auto%d", num_auto_fontsets - 1);
1727 alias = intern (temp); 1731 alias = intern (temp);
1728 } 1732 }
1729 fontset_spec = Fcopy_font_spec (font_spec); 1733 fontset_spec = copy_font_spec (font_spec);
1730 ASET (fontset_spec, FONT_REGISTRY_INDEX, alias); 1734 ASET (fontset_spec, FONT_REGISTRY_INDEX, alias);
1731 name = Ffont_xlfd_name (fontset_spec, Qnil); 1735 name = Ffont_xlfd_name (fontset_spec, Qnil);
1732 if (NILP (name)) 1736 if (NILP (name))