aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2008-11-27 20:18:34 +0000
committerEli Zaretskii2008-11-27 20:18:34 +0000
commit32247e3db3669d8845a62abfe9436ec4e2284de0 (patch)
tree8564826b2f4d702df06e47c95179614829a790c3
parent71b605b87e9b6b07283820065f6ad5cfad46393e (diff)
downloademacs-32247e3db3669d8845a62abfe9436ec4e2284de0.tar.gz
emacs-32247e3db3669d8845a62abfe9436ec4e2284de0.zip
(Fx_font_family_list, syms_of_xfaces): Fix last change.
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xfaces.c43
2 files changed, 27 insertions, 20 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8d2fbd33f88..c8c1c7636af 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12008-11-27 Eli Zaretskii <eliz@gnu.org>
2
3 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4
12008-11-27 Juanma Barranquero <lekktu@gmail.com> 52008-11-27 Juanma Barranquero <lekktu@gmail.com>
2 6
3 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT 7 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
diff --git a/src/xfaces.c b/src/xfaces.c
index 31f56df6ab9..873a7855168 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -1828,25 +1828,6 @@ the face font sort order. */)
1828 return result; 1828 return result;
1829} 1829}
1830 1830
1831
1832DEFUN ("x-font-family-list", Fx_font_family_list, Sx_font_family_list,
1833 0, 1, 0,
1834 doc: /* Return a list of available font families on FRAME.
1835If FRAME is omitted or nil, use the selected frame.
1836Value is a list of conses (FAMILY . FIXED-P) where FAMILY
1837is a font family, and FIXED-P is non-nil if fonts of that family
1838are fixed-pitch. */)
1839 (frame)
1840 Lisp_Object frame;
1841{
1842#ifdef MSDOS
1843 return Fcons (Fcons (build_string ("default"), Qt), Qnil);
1844#else
1845 return Ffont_family_list (frame);
1846#endif
1847}
1848
1849
1850DEFUN ("x-list-fonts", Fx_list_fonts, Sx_list_fonts, 1, 5, 0, 1831DEFUN ("x-list-fonts", Fx_list_fonts, Sx_list_fonts, 1, 5, 0,
1851 doc: /* Return a list of the names of available fonts matching PATTERN. 1832 doc: /* Return a list of the names of available fonts matching PATTERN.
1852If optional arguments FACE and FRAME are specified, return only fonts 1833If optional arguments FACE and FRAME are specified, return only fonts
@@ -1945,6 +1926,26 @@ the WIDTH times as wide as FACE on FRAME. */)
1945 1926
1946#endif /* HAVE_WINDOW_SYSTEM */ 1927#endif /* HAVE_WINDOW_SYSTEM */
1947 1928
1929#if defined(HAVE_WINDOW_SYSTEM) || defined(__MSDOS__)
1930
1931DEFUN ("x-font-family-list", Fx_font_family_list, Sx_font_family_list,
1932 0, 1, 0,
1933 doc: /* Return a list of available font families on FRAME.
1934If FRAME is omitted or nil, use the selected frame.
1935Value is a list of conses (FAMILY . FIXED-P) where FAMILY
1936is a font family, and FIXED-P is non-nil if fonts of that family
1937are fixed-pitch. */)
1938 (frame)
1939 Lisp_Object frame;
1940{
1941#ifdef __MSDOS__
1942 return Fcons (Fcons (build_string ("default"), Qt), Qnil);
1943#else
1944 return Ffont_family_list (frame);
1945#endif
1946}
1947
1948#endif /* HAVE_WINDOW_SYSTEM || __MSDOS__ */
1948 1949
1949 1950
1950/*********************************************************************** 1951/***********************************************************************
@@ -7023,8 +7024,10 @@ a font of 10 point, we actually use a font of 10 * RESCALE-RATIO point. */);
7023 defsubr (&Sx_list_fonts); 7024 defsubr (&Sx_list_fonts);
7024 defsubr (&Sinternal_face_x_get_resource); 7025 defsubr (&Sinternal_face_x_get_resource);
7025 defsubr (&Sx_family_fonts); 7026 defsubr (&Sx_family_fonts);
7027#endif
7028#if defined(HAVE_WINDOW_SYSTEM) || defined(__MSDOS__)
7026 defsubr (&Sx_font_family_list); 7029 defsubr (&Sx_font_family_list);
7027#endif /* HAVE_WINDOW_SYSTEM */ 7030#endif /* HAVE_WINDOW_SYSTEM || __MSDOS__ */
7028} 7031}
7029 7032
7030/* arch-tag: 8a0f7598-5517-408d-9ab3-1da6fcd4c749 7033/* arch-tag: 8a0f7598-5517-408d-9ab3-1da6fcd4c749