summaryrefslogtreecommitdiff
path: root/lisp/ps-def.el
diff options
context:
space:
mode:
authorVinicius Jose Latorre <viniciusjl@ig.com.br>2008-01-09 03:27:04 +0000
committerVinicius Jose Latorre <viniciusjl@ig.com.br>2008-01-09 03:27:04 +0000
commitfd7ec851c6ca45adc3f060b8f824820080abc674 (patch)
tree244d4fed8411ac854b24da8a5395e0860e704d01 /lisp/ps-def.el
parent01f5d76d8ce80d80839dae3d275dd22f71389bc4 (diff)
downloademacs-fd7ec851c6ca45adc3f060b8f824820080abc674.tar.gz
Fix face attributes recognition
Diffstat (limited to 'lisp/ps-def.el')
-rw-r--r--lisp/ps-def.el24
1 files changed, 22 insertions, 2 deletions
diff --git a/lisp/ps-def.el b/lisp/ps-def.el
index 3903fc0ef3f..30453f87463 100644
--- a/lisp/ps-def.el
+++ b/lisp/ps-def.el
@@ -1,13 +1,12 @@
;;; ps-def.el --- XEmacs and Emacs definitions for ps-print
-;; Copyright (C) 2007 Free Software Foundation, Inc.
+;; Copyright (C) 2007, 2008 Free Software Foundation, Inc.
;; Author: Vinicius Jose Latorre <viniciusjl@ig.com.br>
;; Kenichi Handa <handa@m17n.org> (multi-byte characters)
;; Maintainer: Kenichi Handa <handa@m17n.org> (multi-byte characters)
;; Vinicius Jose Latorre <viniciusjl@ig.com.br>
;; Keywords: wp, print, PostScript
-;; Version: 7.2.2
;; X-URL: http://www.emacswiki.org/cgi-bin/wiki/ViniciusJoseLatorre
;; This file is part of GNU Emacs.
@@ -241,6 +240,15 @@
(memq face ps-italic-faces))) ; Kludge-compatible
+ (defalias 'ps-face-strikeout-p 'ignore)
+
+
+ (defalias 'ps-face-overline-p 'ignore)
+
+
+ (defalias 'ps-face-box-p 'ignore)
+
+
;; XEmacs will have to make do with %s (princ) for floats.
(defvar ps-color-format "%s %s %s")
(defvar ps-float-format "%s ")
@@ -362,6 +370,18 @@
(memq face ps-italic-faces)))
+ (defun ps-face-strikeout-p (face)
+ (eq (face-attribute face :strike-through) t))
+
+
+ (defun ps-face-overline-p (face)
+ (eq (face-attribute face :overline) t))
+
+
+ (defun ps-face-box-p (face)
+ (not (memq (face-attribute face :box) '(nil unspecified))))
+
+
;; Emacs understands the %f format; we'll use it to limit color RGB values
;; to three decimals to cut down some on the size of the PostScript output.
(defvar ps-color-format "%0.3f %0.3f %0.3f")