Subject: pkg/17589: intlfonts pkg does not install bdf fonts used by ps-mule.el
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dbj@netbsd.org>
List: netbsd-bugs
Date: 07/13/2002 18:51:13
>Number: 17589
>Category: pkg
>Synopsis: intlfonts pkg does not install bdf fonts used by ps-mule.el
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Jul 13 15:52:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Darrin B. Jewell
>Release: NetBSD 1.6_BETA2, pkgsrc updated via cvs ~ 20020619T0856Z
>Organization:
>Environment:
System: NetBSD quiteria 1.6_BETA2 NetBSD 1.6_BETA2 (QUITERIA) #13: Thu Jun 20 17:05:07 EDT 2002 dbj@quiteria:/usr/src/sys/arch/macppc/compile/QUITERIA macppc
Architecture: powerpc
Machine: macppc
>Description:
The intlfonts package installs many fonts used by emacs to
render multibyte characters. However, since X uses only the pcf
format files, the bdf files that come with the intlfonts
distribution are not installed.
In addition, since some of the fonts in the intlfonts-1.2 distribution
duplicate ones found in our X11 installation (e.g. Chinese.X
Japanese.X Korean.X), they are not installed at all.
Unfortunately, emacs's ps-mule.el support for embedding font
bitmaps in a postscript file can only use the bdf format fonts,
emacs can not be configured to use our intlfonts package
for generating postscript.
>How-To-Repeat:
. install the intlfonts package
. observe that there are no bdf files installed
. also observe that the following fonts are not
part of the intlfonts package at all:
jiskan, gb24st, hanglm24
>Fix:
have the intlfonts package install the bdf files
for all available fonts, especially the ones found in emacs's
variable ps-mule-font-info-database-bdf. I have included
the current value for ps-mule-font-info-database-bdf
below.
A reasonable place to install the bdf files would be
/usr/pkg/share/emacs/fonts/bdf
The emacs package should also be modified to set
the variable bdf-directory-list to the intlfonts bdf
installation directory in its site-init.el file.
For reference, here is the value of
ps-mule-font-info-database-bdf from emacs-21.2. It
can be used to determine which bdf files emacs will
choose when it embeds font bitmaps in its postcript
files.
(defconst ps-mule-font-info-database-bdf
'((ascii
(normal bdf ("lt1-24-etl.bdf" "etl24-latin1.bdf") nil 1)
(bold bdf ("lt1-16b-etl.bdf" "etl16b-latin1.bdf") nil 1)
(italic bdf ("lt1-16i-etl.bdf" "etl16i-latin1.bdf") nil 1)
(bold-italic bdf ("lt1-16bi-etl.bdf" "etl16bi-latin1.bdf") nil 1))
(latin-iso8859-1
(normal bdf ("lt1-24-etl.bdf" "etl24-latin1.bdf") iso-latin-1 1)
(bold bdf ("lt1-16b-etl.bdf" "etl16b-latin1.bdf") iso-latin-1 1)
(italic bdf ("lt1-16i-etl.bdf" "etl16i-latin1.bdf") iso-latin-1 1)
(bold-italic bdf ("lt1-16bi-etl.bdf" "etl16bi-latin1.bdf") iso-latin-1 1))
(latin-iso8859-2
(normal bdf ("lt2-24-etl.bdf" "etl24-latin2.bdf") iso-latin-2 1))
(latin-iso8859-3
(normal bdf ("lt3-24-etl.bdf" "etl24-latin3.bdf") iso-latin-3 1))
(latin-iso8859-4
(normal bdf ("lt4-24-etl.bdf" "etl24-latin4.bdf") iso-latin-4 1))
(thai-tis620
(normal bdf ("thai24.bdf" "thai-24.bdf") thai-tis620 1))
(greek-iso8859-7
(normal bdf ("grk24-etl.bdf" "etl24-greek.bdf") greek-iso-8bit 1))
;; (arabic-iso8859-6 nil) ; not yet available
(hebrew-iso8859-8
(normal bdf ("heb24-etl.bdf" "etl24-hebrew.bdf") hebrew-iso-8bit 1))
(katakana-jisx0201
(normal bdf "12x24rk.bdf" ps-mule-encode-8bit 1))
(latin-jisx0201
(normal bdf "12x24rk.bdf" ps-mule-encode-7bit 1))
(cyrillic-iso8859-5
(normal bdf ("cyr24-etl.bdf" "etl24-cyrillic.bdf") cyrillic-iso-8bit 1))
(latin-iso8859-9
(normal bdf ("lt5-24-etl.bdf" "etl24-latin5.bdf") iso-latin-5 1))
(japanese-jisx0208-1978
(normal bdf "jiskan24.bdf" ps-mule-encode-7bit 2))
(chinese-gb2312
(normal bdf "gb24st.bdf" ps-mule-encode-7bit 2))
(japanese-jisx0208
(normal bdf "jiskan24.bdf" ps-mule-encode-7bit 2))
(korean-ksc5601
(normal bdf "hanglm24.bdf" ps-mule-encode-7bit 2))
(japanese-jisx0212
(normal bdf ("jksp40.bdf" "jisksp40.bdf") ps-mule-encode-7bit 2))
(chinese-cns11643-1
(normal bdf ("cns1-40.bdf" "cns-1-40.bdf") ps-mule-encode-7bit 2))
(chinese-cns11643-2
(normal bdf ("cns2-40.bdf" "cns-2-40.bdf") ps-mule-encode-7bit 2))
(chinese-big5-1
(normal bdf "taipei24.bdf" chinese-big5 2))
(chinese-big5-2
(normal bdf "taipei24.bdf" chinese-big5 2))
(chinese-sisheng
(normal bdf ("sish24-etl.bdf" "etl24-sisheng.bdf") ps-mule-encode-7bit 1))
(ipa
(normal bdf ("ipa24-etl.bdf" "etl24-ipa.bdf") ps-mule-encode-8bit 1))
(vietnamese-viscii-lower
(normal bdf ("visc24-etl.bdf" "etl24-viscii.bdf") vietnamese-viscii 1))
(vietnamese-viscii-upper
(normal bdf ("visc24-etl.bdf" "etl24-viscii.bdf") vietnamese-viscii 1))
(arabic-digit
(normal bdf ("arab24-0-etl.bdf" "etl24-arabic0.bdf") ps-mule-encode-7bit 1))
(arabic-1-column
(normal bdf ("arab24-1-etl.bdf" "etl24-arabic1.bdf") ps-mule-encode-7bit 1))
;; (ascii-right-to-left nil) ; not yet available
(lao
(normal bdf ("lao24-mule.bdf" "mule-lao-24.bdf") lao 1))
(arabic-2-column
(normal bdf ("arab24-2-etl.bdf" "etl24-arabic2.bdf") ps-mule-encode-7bit 1))
(indian-is13194
(normal bdf ("isci24-mule.bdf" "mule-iscii-24.bdf") ps-mule-encode-7bit 1))
(indian-1-column
(normal bdf ("ind1c24-mule.bdf" "mule-indian-1col-24.bdf") ps-mule-encode-7bit 2))
(tibetan-1-column
(normal bdf ("tib1c24-mule.bdf" "mule-tibmdx-1col-24.bdf") ps-mule-encode-7bit 2))
(ethiopic
(normal bdf ("ethio24f-uni.bdf" "ethiomx24f-uni.bdf") ps-mule-encode-ethiopic 2))
(chinese-cns11643-3
(normal bdf ("cns3-40.bdf" "cns-3-40.bdf") ps-mule-encode-7bit 2))
(chinese-cns11643-4
(normal bdf ("cns4-40.bdf" "cns-4-40.bdf") ps-mule-encode-7bit 2))
(chinese-cns11643-5
(normal bdf ("cns5-40.bdf" "cns-5-40.bdf") ps-mule-encode-7bit 2))
(chinese-cns11643-6
(normal bdf ("cns6-40.bdf" "cns-6-40.bdf") ps-mule-encode-7bit 2))
(chinese-cns11643-7
(normal bdf ("cns7-40.bdf" "cns-7-40.bdf") ps-mule-encode-7bit 2))
(indian-2-column
(normal bdf ("ind24-mule.bdf" "mule-indian-24.bdf") ps-mule-encode-7bit 2))
(tibetan
(normal bdf ("tib24p-mule.bdf" "tib24-mule.bdf" "mule-tibmdx-24.bdf")
ps-mule-encode-7bit 2)))
"Sample setting of the `ps-mule-font-info-database' to use BDF fonts.
BDF (Bitmap Distribution Format) is a format used for distributing X's font
source file.
Current default value list for BDF fonts is included in `intlfonts-1.2' which is
a collection of X11 fonts for all characters supported by Emacs.
Using this list as default value to `ps-mule-font-info-database', all characters
including ASCII and Latin-1 are printed by BDF fonts.
See also `ps-mule-font-info-database-ps-bdf'.")
>Release-Note:
>Audit-Trail:
>Unformatted: