Mercurial > emacs
comparison lisp/ps-print.el @ 90203:187d6a1f84f7
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-71
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 485-492)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 92-94)
- Merge from emacs--cvs-trunk--0
- Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 22 Jul 2005 08:27:27 +0000 |
parents | f9a65d7ebd29 c0ad64b42b78 |
children | 2d92f5c9d6ae |
comparison
equal
deleted
inserted
replaced
90202:7597b4a23c3b | 90203:187d6a1f84f7 |
---|---|
2267 FILENAME is a file name which contains an EPS image or some PostScript | 2267 FILENAME is a file name which contains an EPS image or some PostScript |
2268 programming like EPS. | 2268 programming like EPS. |
2269 FILENAME is ignored, if it doesn't exist or is read protected. | 2269 FILENAME is ignored, if it doesn't exist or is read protected. |
2270 | 2270 |
2271 X and Y are relative positions on paper to put the image. | 2271 X and Y are relative positions on paper to put the image. |
2272 If X and Y are nil, the image is centralized on paper. | 2272 If X and Y are nil, the image is centered on paper. |
2273 | 2273 |
2274 XSCALE and YSCALE are scale factor to be applied to image before printing. | 2274 XSCALE and YSCALE are scale factor to be applied to image before printing. |
2275 If XSCALE and YSCALE are nil, the original size is used. | 2275 If XSCALE and YSCALE are nil, the original size is used. |
2276 | 2276 |
2277 ROTATION is the image rotation angle; if nil, the default is 0. | 2277 ROTATION is the image rotation angle; if nil, the default is 0. |
3029 (RED, GREEN, BLUE) | 3029 (RED, GREEN, BLUE) |
3030 | 3030 |
3031 Where RED, GREEN and BLUE are reals between 0.0 (no color) and | 3031 Where RED, GREEN and BLUE are reals between 0.0 (no color) and |
3032 1.0 (full color). | 3032 1.0 (full color). |
3033 | 3033 |
3034 Any other value is ignored and it's used the black color. | 3034 Any other value is ignored and black will be used. |
3035 | 3035 |
3036 It's used only when `ps-print-color-p' is non-nil." | 3036 It's used only when `ps-print-color-p' is non-nil." |
3037 :type '(choice :menu-tag "Default Foreground Gray/Color" | 3037 :type '(choice :menu-tag "Default Foreground Gray/Color" |
3038 :tag "Default Foreground Gray/Color" | 3038 :tag "Default Foreground Gray/Color" |
3039 (const :tag "Session Foreground" t) | 3039 (const :tag "Session Foreground" t) |
3069 (RED, GREEN, BLUE) | 3069 (RED, GREEN, BLUE) |
3070 | 3070 |
3071 Where RED, GREEN and BLUE are reals between 0.0 (no color) and | 3071 Where RED, GREEN and BLUE are reals between 0.0 (no color) and |
3072 1.0 (full color). | 3072 1.0 (full color). |
3073 | 3073 |
3074 Any other value is ignored and it's used the white color. | 3074 Any other value is ignored and white will be used. |
3075 | 3075 |
3076 It's used only when `ps-print-color-p' is non-nil. | 3076 It's used only when `ps-print-color-p' is non-nil. |
3077 | 3077 |
3078 See also `ps-use-face-background'." | 3078 See also `ps-use-face-background'." |
3079 :type '(choice :menu-tag "Default Background Gray/Color" | 3079 :type '(choice :menu-tag "Default Background Gray/Color" |
4135 "Extend face in ALIST-SYM. | 4135 "Extend face in ALIST-SYM. |
4136 | 4136 |
4137 If optional MERGE-P is non-nil, extensions in FACE-EXTENSION-LIST are merged | 4137 If optional MERGE-P is non-nil, extensions in FACE-EXTENSION-LIST are merged |
4138 with face extension in ALIST-SYM; otherwise, overrides. | 4138 with face extension in ALIST-SYM; otherwise, overrides. |
4139 | 4139 |
4140 If optional ALIST-SYM is nil, it's used `ps-print-face-extension-alist'; | 4140 If optional ALIST-SYM is nil, `ps-print-face-extension-alist' is used; |
4141 otherwise, it should be an alist symbol. | 4141 otherwise, it should be an alist symbol. |
4142 | 4142 |
4143 The elements in FACE-EXTENSION-LIST is like those for `ps-extend-face'. | 4143 The elements in FACE-EXTENSION-LIST are like those for `ps-extend-face'. |
4144 | 4144 |
4145 See `ps-extend-face' for documentation." | 4145 See `ps-extend-face' for documentation." |
4146 (while face-extension-list | 4146 (while face-extension-list |
4147 (ps-extend-face (car face-extension-list) merge-p alist-sym) | 4147 (ps-extend-face (car face-extension-list) merge-p alist-sym) |
4148 (setq face-extension-list (cdr face-extension-list)))) | 4148 (setq face-extension-list (cdr face-extension-list)))) |
4153 "Extend face in ALIST-SYM. | 4153 "Extend face in ALIST-SYM. |
4154 | 4154 |
4155 If optional MERGE-P is non-nil, extensions in FACE-EXTENSION list are merged | 4155 If optional MERGE-P is non-nil, extensions in FACE-EXTENSION list are merged |
4156 with face extensions in ALIST-SYM; otherwise, overrides. | 4156 with face extensions in ALIST-SYM; otherwise, overrides. |
4157 | 4157 |
4158 If optional ALIST-SYM is nil, it's used `ps-print-face-extension-alist'; | 4158 If optional ALIST-SYM is nil, `ps-print-face-extension-alist' is used; |
4159 otherwise, it should be an alist symbol. | 4159 otherwise, it should be an alist symbol. |
4160 | 4160 |
4161 The elements of FACE-EXTENSION list have the form: | 4161 The elements of FACE-EXTENSION list have the form: |
4162 | 4162 |
4163 (FACE-NAME FOREGROUND BACKGROUND EXTENSION...) | 4163 (FACE-NAME FOREGROUND BACKGROUND EXTENSION...) |
4972 "PrintPageWidth 2 div") | 4972 "PrintPageWidth 2 div") |
4973 (ps-float-format (nth 2 image) ; y position | 4973 (ps-float-format (nth 2 image) ; y position |
4974 "PrintHeight 2 div BottomMargin add") | 4974 "PrintHeight 2 div BottomMargin add") |
4975 "\nBeginBackImage\n") | 4975 "\nBeginBackImage\n") |
4976 (ps-insert-file image-file) | 4976 (ps-insert-file image-file) |
4977 ;; coordinate adjustment to centralize image | 4977 ;; coordinate adjustment to center image |
4978 ;; around x and y position | 4978 ;; around x and y position |
4979 (let ((box (ps-get-boundingbox))) | 4979 (let ((box (ps-get-boundingbox))) |
4980 (save-excursion | 4980 (save-excursion |
4981 (set-buffer ps-spool-buffer) | 4981 (set-buffer ps-spool-buffer) |
4982 (save-excursion | 4982 (save-excursion |