diff options
| author | Richard M. Stallman | 1997-09-09 07:33:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-09-09 07:33:12 +0000 |
| commit | 7f72c06f7f65f95adb305443fc5c5451894ee397 (patch) | |
| tree | 1c20e1f1e8babcb1f666e2c2d9ca73d70f8419bd | |
| parent | af898b0f84c3a7bdd048cc3fda4adaec62949567 (diff) | |
| download | emacs-7f72c06f7f65f95adb305443fc5c5451894ee397.tar.gz emacs-7f72c06f7f65f95adb305443fc5c5451894ee397.zip | |
(ps-face-bold-p): Use face-bold-p.
(ps-face-italic-p): Use face-italic-p.
| -rw-r--r-- | lisp/ps-print.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index e1e58a93cea..1ea38b98c52 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -1181,7 +1181,7 @@ when generating Postscript." | |||
| 1181 | 1181 | ||
| 1182 | (defcustom ps-auto-font-detect t | 1182 | (defcustom ps-auto-font-detect t |
| 1183 | "*Non-nil means automatically detect bold/italic face attributes. | 1183 | "*Non-nil means automatically detect bold/italic face attributes. |
| 1184 | nil means rely solely on the lists `ps-bold-faces', `ps-italic-faces', | 1184 | If nil, we rely solely on the lists `ps-bold-faces', `ps-italic-faces', |
| 1185 | and `ps-underlined-faces'." | 1185 | and `ps-underlined-faces'." |
| 1186 | :type 'boolean | 1186 | :type 'boolean |
| 1187 | :group 'ps-print-font) | 1187 | :group 'ps-print-font) |
| @@ -3269,14 +3269,13 @@ If FACE is not a valid face name, it is used default face." | |||
| 3269 | 3269 | ||
| 3270 | (defun ps-face-bold-p (face) | 3270 | (defun ps-face-bold-p (face) |
| 3271 | (if (eq ps-print-emacs-type 'emacs) | 3271 | (if (eq ps-print-emacs-type 'emacs) |
| 3272 | (ps-emacs-face-kind-p face 'bold "-\\(bold\\|demibold\\)-" | 3272 | (face-bold-p face) |
| 3273 | ps-bold-faces) | ||
| 3274 | (ps-xemacs-face-kind-p face 'WEIGHT_NAME "bold\\|demibold" | 3273 | (ps-xemacs-face-kind-p face 'WEIGHT_NAME "bold\\|demibold" |
| 3275 | ps-bold-faces))) | 3274 | ps-bold-faces))) |
| 3276 | 3275 | ||
| 3277 | (defun ps-face-italic-p (face) | 3276 | (defun ps-face-italic-p (face) |
| 3278 | (if (eq ps-print-emacs-type 'emacs) | 3277 | (if (eq ps-print-emacs-type 'emacs) |
| 3279 | (ps-emacs-face-kind-p face 'italic "-[io]-" ps-italic-faces) | 3278 | (face-italic-p face) |
| 3280 | (or | 3279 | (or |
| 3281 | (ps-xemacs-face-kind-p face 'ANGLE_NAME "i\\|o" ps-italic-faces) | 3280 | (ps-xemacs-face-kind-p face 'ANGLE_NAME "i\\|o" ps-italic-faces) |
| 3282 | (ps-xemacs-face-kind-p face 'SLANT "i\\|o" ps-italic-faces)))) | 3281 | (ps-xemacs-face-kind-p face 'SLANT "i\\|o" ps-italic-faces)))) |