aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2008-05-22 02:21:05 +0000
committerKenichi Handa2008-05-22 02:21:05 +0000
commit68eaeee49235eb135afa16761ba77eda49d79716 (patch)
treeac5dcec0fa318656b7fa4cd04a377289a48026a4
parentd0ab1ebe49f70b63555f44f400128de39fac4bbf (diff)
downloademacs-68eaeee49235eb135afa16761ba77eda49d79716.tar.gz
emacs-68eaeee49235eb135afa16761ba77eda49d79716.zip
*** empty log message ***
-rw-r--r--src/font.c2
-rw-r--r--src/xfaces.c69
2 files changed, 1 insertions, 70 deletions
diff --git a/src/font.c b/src/font.c
index 9986b0f48d0..44c5aef9b90 100644
--- a/src/font.c
+++ b/src/font.c
@@ -3722,7 +3722,7 @@ DEFUN ("clear-font-cache", Fclear_font_cache, Sclear_font_cache, 0, 0, 0,
3722 return Qnil; 3722 return Qnil;
3723} 3723}
3724 3724
3725/* The following three functions are still expremental. */ 3725/* The following three functions are still experimental. */
3726 3726
3727DEFUN ("font-make-gstring", Ffont_make_gstring, Sfont_make_gstring, 2, 2, 0, 3727DEFUN ("font-make-gstring", Ffont_make_gstring, Sfont_make_gstring, 2, 2, 0,
3728 doc: /* Return a newly created g-string for FONT-OBJECT with NUM glyphs. 3728 doc: /* Return a newly created g-string for FONT-OBJECT with NUM glyphs.
diff --git a/src/xfaces.c b/src/xfaces.c
index 313f8b1dcdb..f954ea93e74 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -1707,75 +1707,6 @@ enum xlfd_swidth
1707 XLFD_SWIDTH_ULTRA_EXPANDED /* 90: UltraExpanded... */ 1707 XLFD_SWIDTH_ULTRA_EXPANDED /* 90: UltraExpanded... */
1708}; 1708};
1709 1709
1710/* Structure used for tables mapping XLFD weight, slant, and width
1711 names to numeric and symbolic values. */
1712
1713struct table_entry
1714{
1715 char *name;
1716 int numeric;
1717 Lisp_Object *symbol;
1718};
1719
1720/* Table of XLFD slant names and their numeric and symbolic
1721 representations. This table must be sorted by slant names in
1722 ascending order. */
1723
1724static struct table_entry slant_table[] =
1725{
1726 {"i", XLFD_SLANT_ITALIC, &Qitalic},
1727 {"o", XLFD_SLANT_OBLIQUE, &Qoblique},
1728 {"ot", XLFD_SLANT_OTHER, &Qitalic},
1729 {"r", XLFD_SLANT_ROMAN, &Qnormal},
1730 {"ri", XLFD_SLANT_REVERSE_ITALIC, &Qreverse_italic},
1731 {"ro", XLFD_SLANT_REVERSE_OBLIQUE, &Qreverse_oblique}
1732};
1733
1734/* Table of XLFD weight names. This table must be sorted by weight
1735 names in ascending order. */
1736
1737static struct table_entry weight_table[] =
1738{
1739 {"black", XLFD_WEIGHT_ULTRA_BOLD, &Qultra_bold},
1740 {"bold", XLFD_WEIGHT_BOLD, &Qbold},
1741 {"book", XLFD_WEIGHT_SEMI_LIGHT, &Qsemi_light},
1742 {"demi", XLFD_WEIGHT_SEMI_BOLD, &Qsemi_bold},
1743 {"demibold", XLFD_WEIGHT_SEMI_BOLD, &Qsemi_bold},
1744 {"extralight", XLFD_WEIGHT_EXTRA_LIGHT, &Qextra_light},
1745 {"extrabold", XLFD_WEIGHT_EXTRA_BOLD, &Qextra_bold},
1746 {"heavy", XLFD_WEIGHT_EXTRA_BOLD, &Qextra_bold},
1747 {"light", XLFD_WEIGHT_LIGHT, &Qlight},
1748 {"medium", XLFD_WEIGHT_MEDIUM, &Qnormal},
1749 {"normal", XLFD_WEIGHT_MEDIUM, &Qnormal},
1750 {"regular", XLFD_WEIGHT_MEDIUM, &Qnormal},
1751 {"semibold", XLFD_WEIGHT_SEMI_BOLD, &Qsemi_bold},
1752 {"semilight", XLFD_WEIGHT_SEMI_LIGHT, &Qsemi_light},
1753 {"ultralight", XLFD_WEIGHT_ULTRA_LIGHT, &Qultra_light},
1754 {"ultrabold", XLFD_WEIGHT_ULTRA_BOLD, &Qultra_bold}
1755};
1756
1757/* Table of XLFD width names. This table must be sorted by width
1758 names in ascending order. */
1759
1760static struct table_entry swidth_table[] =
1761{
1762 {"compressed", XLFD_SWIDTH_CONDENSED, &Qcondensed},
1763 {"condensed", XLFD_SWIDTH_CONDENSED, &Qcondensed},
1764 {"demiexpanded", XLFD_SWIDTH_SEMI_EXPANDED, &Qsemi_expanded},
1765 {"expanded", XLFD_SWIDTH_EXPANDED, &Qexpanded},
1766 {"extracondensed", XLFD_SWIDTH_EXTRA_CONDENSED, &Qextra_condensed},
1767 {"extraexpanded", XLFD_SWIDTH_EXTRA_EXPANDED, &Qextra_expanded},
1768 {"medium", XLFD_SWIDTH_MEDIUM, &Qnormal},
1769 {"narrow", XLFD_SWIDTH_CONDENSED, &Qcondensed},
1770 {"normal", XLFD_SWIDTH_MEDIUM, &Qnormal},
1771 {"regular", XLFD_SWIDTH_MEDIUM, &Qnormal},
1772 {"semicondensed", XLFD_SWIDTH_SEMI_CONDENSED, &Qsemi_condensed},
1773 {"semiexpanded", XLFD_SWIDTH_SEMI_EXPANDED, &Qsemi_expanded},
1774 {"ultracondensed", XLFD_SWIDTH_ULTRA_CONDENSED, &Qultra_condensed},
1775 {"ultraexpanded", XLFD_SWIDTH_ULTRA_EXPANDED, &Qultra_expanded},
1776 {"wide", XLFD_SWIDTH_EXTRA_EXPANDED, &Qextra_expanded}
1777};
1778
1779/* The frame in effect when sorting font names. Set temporarily in 1710/* The frame in effect when sorting font names. Set temporarily in
1780 sort_fonts so that it is available in font comparison functions. */ 1711 sort_fonts so that it is available in font comparison functions. */
1781 1712