diff options
| -rw-r--r-- | lisp/faces.el | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index 67df06d0900..3ed3bb7aa74 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -55,7 +55,7 @@ a font height that isn't optimal." | |||
| 55 | (set-default symbol value) | 55 | (set-default symbol value) |
| 56 | (internal-set-font-selection-order value))) | 56 | (internal-set-font-selection-order value))) |
| 57 | 57 | ||
| 58 | 58 | ;; This is defined originally in {w32,x}faces.c. | |
| 59 | (defcustom face-font-family-alternatives | 59 | (defcustom face-font-family-alternatives |
| 60 | '(("courier" "fixed") | 60 | '(("courier" "fixed") |
| 61 | ("helv" "helvetica" "arial" "fixed")) | 61 | ("helv" "helvetica" "arial" "fixed")) |
| @@ -1671,9 +1671,8 @@ created." | |||
| 1671 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 1671 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 1672 | 1672 | ||
| 1673 | ;; This is here for compatibilty with Emacs 20.2. For example, | 1673 | ;; This is here for compatibilty with Emacs 20.2. For example, |
| 1674 | ;; international/fontset.el uses these functions to manipulate font | 1674 | ;; international/fontset.el uses x-resolve-font-name. The following |
| 1675 | ;; names. The following functions are not used in the face | 1675 | ;; functions are not used in the face implementation itself. |
| 1676 | ;; implementation itself. | ||
| 1677 | 1676 | ||
| 1678 | (defvar x-font-regexp nil) | 1677 | (defvar x-font-regexp nil) |
| 1679 | (defvar x-font-regexp-head nil) | 1678 | (defvar x-font-regexp-head nil) |
| @@ -1772,7 +1771,7 @@ also the same size as FACE on FRAME, or fail." | |||
| 1772 | ((string-match x-font-regexp-weight font) | 1771 | ((string-match x-font-regexp-weight font) |
| 1773 | (concat (substring font 0 (match-beginning 1)) which | 1772 | (concat (substring font 0 (match-beginning 1)) which |
| 1774 | (substring font (match-end 1))))))) | 1773 | (substring font (match-end 1))))))) |
| 1775 | 1774 | (make-obsolete 'x-frob-font-weight 'make-face-...) | |
| 1776 | 1775 | ||
| 1777 | (defun x-frob-font-slant (font which) | 1776 | (defun x-frob-font-slant (font which) |
| 1778 | (let ((case-fold-search t)) | 1777 | (let ((case-fold-search t)) |
| @@ -1793,49 +1792,50 @@ also the same size as FACE on FRAME, or fail." | |||
| 1793 | ((string-match x-font-regexp-slant font) | 1792 | ((string-match x-font-regexp-slant font) |
| 1794 | (concat (substring font 0 (match-beginning 1)) which | 1793 | (concat (substring font 0 (match-beginning 1)) which |
| 1795 | (substring font (match-end 1))))))) | 1794 | (substring font (match-end 1))))))) |
| 1796 | 1795 | (make-obsolete 'x-frob-font-slant 'make-face-...) | |
| 1797 | 1796 | ||
| 1798 | (defun x-make-font-bold (font) | 1797 | (defun x-make-font-bold (font) |
| 1799 | "Given an X font specification, make a bold version of it. | 1798 | "Given an X font specification, make a bold version of it. |
| 1800 | If that can't be done, return nil." | 1799 | If that can't be done, return nil." |
| 1801 | (x-frob-font-weight font "bold")) | 1800 | (x-frob-font-weight font "bold")) |
| 1802 | 1801 | (make-obsolete 'x-make-font-bold 'make-face-bold) | |
| 1803 | 1802 | ||
| 1804 | (defun x-make-font-demibold (font) | 1803 | (defun x-make-font-demibold (font) |
| 1805 | "Given an X font specification, make a demibold version of it. | 1804 | "Given an X font specification, make a demibold version of it. |
| 1806 | If that can't be done, return nil." | 1805 | If that can't be done, return nil." |
| 1807 | (x-frob-font-weight font "demibold")) | 1806 | (x-frob-font-weight font "demibold")) |
| 1808 | 1807 | (make-obsolete 'x-make-font-demibold 'make-face-bold) | |
| 1809 | 1808 | ||
| 1810 | (defun x-make-font-unbold (font) | 1809 | (defun x-make-font-unbold (font) |
| 1811 | "Given an X font specification, make a non-bold version of it. | 1810 | "Given an X font specification, make a non-bold version of it. |
| 1812 | If that can't be done, return nil." | 1811 | If that can't be done, return nil." |
| 1813 | (x-frob-font-weight font "medium")) | 1812 | (x-frob-font-weight font "medium")) |
| 1814 | 1813 | (make-obsolete 'x-make-font-unbold 'make-face-unbold) | |
| 1815 | 1814 | ||
| 1816 | (defun x-make-font-italic (font) | 1815 | (defun x-make-font-italic (font) |
| 1817 | "Given an X font specification, make an italic version of it. | 1816 | "Given an X font specification, make an italic version of it. |
| 1818 | If that can't be done, return nil." | 1817 | If that can't be done, return nil." |
| 1819 | (x-frob-font-slant font "i")) | 1818 | (x-frob-font-slant font "i")) |
| 1820 | 1819 | (make-obsolete 'x-make-font-italic 'make-face-italic) | |
| 1821 | 1820 | ||
| 1822 | (defun x-make-font-oblique (font) ; you say tomayto... | 1821 | (defun x-make-font-oblique (font) ; you say tomayto... |
| 1823 | "Given an X font specification, make an oblique version of it. | 1822 | "Given an X font specification, make an oblique version of it. |
| 1824 | If that can't be done, return nil." | 1823 | If that can't be done, return nil." |
| 1825 | (x-frob-font-slant font "o")) | 1824 | (x-frob-font-slant font "o")) |
| 1826 | 1825 | (make-obsolete 'x-make-font-oblique 'make-face-italic) | |
| 1827 | 1826 | ||
| 1828 | (defun x-make-font-unitalic (font) | 1827 | (defun x-make-font-unitalic (font) |
| 1829 | "Given an X font specification, make a non-italic version of it. | 1828 | "Given an X font specification, make a non-italic version of it. |
| 1830 | If that can't be done, return nil." | 1829 | If that can't be done, return nil." |
| 1831 | (x-frob-font-slant font "r")) | 1830 | (x-frob-font-slant font "r")) |
| 1832 | 1831 | (make-obsolete 'x-make-font-unitalic 'make-face-unitalic) | |
| 1833 | 1832 | ||
| 1834 | (defun x-make-font-bold-italic (font) | 1833 | (defun x-make-font-bold-italic (font) |
| 1835 | "Given an X font specification, make a bold and italic version of it. | 1834 | "Given an X font specification, make a bold and italic version of it. |
| 1836 | If that can't be done, return nil." | 1835 | If that can't be done, return nil." |
| 1837 | (and (setq font (x-make-font-bold font)) | 1836 | (and (setq font (x-make-font-bold font)) |
| 1838 | (x-make-font-italic font))) | 1837 | (x-make-font-italic font))) |
| 1838 | (make-obsolete 'x-make-font-bold-italic 'make-face-bold-italic) | ||
| 1839 | 1839 | ||
| 1840 | (provide 'faces) | 1840 | (provide 'faces) |
| 1841 | 1841 | ||