[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[h-e-w] Problems with ps-print-buffer-with-faces
From: |
Charley Hamilton |
Subject: |
[h-e-w] Problems with ps-print-buffer-with-faces |
Date: |
Tue, 11 Feb 2003 10:01:30 -0800 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 |
Hullo, all.
So, in the past, I've printed to a PS file very successfully
using ntemacs 20.7.1. After upgrading to 21.2.1, I've apparently
"lost" the ability to ps-print buffers.
I now get the following error:
BDF file lt1-24-etl.bdf doesn't exist
whenever I execute the code below:
(global-set-key [f9] 'print-color-buffer) ;print color buffer to file
(setq ps-print-color-p t) ;sets default to be color on for ps-print
(defun print-color-buffer () "Print buffer to color PS file."
(interactive)
(ps-print-buffer-with-faces (concat (buffer-file-name) ".ps")))
Any comments from the more clueful as to what may be affecting this
behavior? Indeed, this file is not missing, but located in a
directory specified in my bdf-directory-list as part of the
(long) code below:
;this should enable intlfonts-1.2 support. We'll see...
(load "ps-mule")
(setq ps-multibyte-buffer 'bdf-font
ps-mule-font-info-database ps-mule-font-info-database-bdf
bdf-directory-list '("c:/intlfonts/European" "c:/intlfonts/Chinese"
"c:/intlfonts/Japanese"
"c:/intlfonts/Korean-X"))
(setq bdf-directory-list
'("C:/intlfonts/Asian" "C:/intlfonts/Chinese"
"C:/intlfonts/Chinese.BIG" "C:/intlfonts/Chinese.X"
"C:/intlfonts/Ethiopic" "C:/intlfonts/European"
"C:/intlfonts/European.BIG" "C:/intlfonts/Japanese"
"C:/intlfonts/Japanese.BIG" "C:/intlfonts/Japanese.X"
"C:/intlfonts/Korean.X" "C:/intlfonts/Misc"
"C:/intlfonts/TrueType" "C:/intlfonts/Type1"))
(setq w32-bdf-filename-alist
(w32-find-bdf-fonts bdf-directory-list))
; 14 point fonts
(create-fontset-from-fontset-spec
; "-*-fixed-medium-r-normal-*-14-*-*-*-c-*-fontset-bdf,
"-*-Courier New-normal-r-*-*-14-*-*-*-c-*-fontset-most,
japanese-jisx0208:-*-*-medium-r-normal-*-14-*-*-*-c-*-jisx0208.1983-*,
katakana-jisx0201:-*-*-medium-r-normal-*-14-*-*-*-c-*-jisx0201*-*,
latin-jisx0201:-*-*-medium-r-normal-*-14-*-*-*-c-*-jisx0201*-*,
japanese-jisx0208-1978:-*-*-medium-r-normal-*-14-*-*-*-c-*-jisx0208.1978-*,
thai-tis620:-misc-fixed-medium-r-normal--14-160-72-72-m-80-tis620.2529-1,
lao:-misc-fixed-medium-r-normal--14-160-72-72-m-80-MuleLao-1,
tibetan-1-column:-TibMdXA-fixed-medium-r-normal--14-160-72-72-m-80-MuleTibetan-1,
ethiopic:-Admas-Ethiomx16f-Medium-R-Normal--14-150-100-100-M-160-Ethiopic-Unicode,
tibetan:-TibMdXA-fixed-medium-r-normal--14-160-72-72-m-160-MuleTibetan-0")
;; Need to add some fonts to font-encoding-alist since the bdf fonts
;; are type 0 not the default type 1.
(setq font-encoding-alist
(append '(("MuleTibetan-0" (tibetan . 0))
("GB2312" (chinese-gb2312 . 0))
("JISX0208" (japanese-jisx0208 . 0))
("JISX0212" (japanese-jisx0212 . 0))
("VISCII" (vietnamese-viscii-lower . 0))
("KSC5601" (korean-ksc5601 . 0))
("MuleArabic-0" (arabic-digit . 0))
("MuleArabic-1" (arabic-1-column . 0))
("MuleArabic-2" (arabic-2-column . 0))) font-encoding-alist))
; should set the bdf fontset as the default on startup
;(set-default-font "fontset-bdf")
(set-default-font "fontset-most")
Any help would be greatly appreciated. I *like* being able to
"prettyprint" my code so I can use colors when debugging
code "offline" (eyes tired of looking at screen, butt tired of
sitting in chair).
Charley
--
Charles Hamilton, PhD EIT Faculty Fellow
Department of Civil and Phone: 949.824.3752
Environmental Engineering FAX: 949.824.2117
University of California, Irvine Email: address@hidden
- [h-e-w] Problems with ps-print-buffer-with-faces,
Charley Hamilton <=