[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-devel:10909] Re: Bug#41570: [root@xxxxxxxxxxxx: Bug#49732: gs complaining about missing font 'min']
At Thu, 11 Nov 1999 17:58:16 +0900,
Marco Pistore <pistore@xxxxxxxxxxx> wrote:
> Clearly, i'd prefer not to remove the kanji support. However, if we
> are not able to find a good fix in a pair of days, i'll upload a new
> version with kanji-support disabled, as a temporary patch.
>
> In the meantime, i have given a look to the problem: it seems to
> reside in file /usr/lib/ghostscrfipt/5.10/kanji/kconfig.ps, that, if i
> understand correctly, describes the kanji fonts that are available on
> the sistem. In particular, the instructions
>
> /Ryumin-Light 4300000 (min) VFlibkanji
> /GothicBBB-Medium 4300200 (goth) VFlibkanji
>
> try to load the fonts and complain if they are not present on the
> system. A possibility would be to move this file to /etc/ and to
> modify it dynamically, when new kanji fonts are added to the system.
> Another possibility is to manage kanji fonts as ordinary fonts are
> handled, i.e., by looking at the font files only when the fonts are
> used.
>
> Any hint is welcome!
How about this patch ?
--- gs_init.ps.orig Sun Nov 7 11:49:17 1999
+++ gs_init.ps Thu Nov 11 20:31:40 1999
@@ -123,7 +123,9 @@
currentdict /NOFONTMAP known /NOFONTMAP exch def
currentdict /NOFONTPATH known /NOFONTPATH exch def
currentdict /NOGC known /NOGC exch def
-currentdict /NOKANJI known /NOKANJI exch def
+currentdict /NOKANJI known { /NOKANJI true def } {
+ (LANG) getenv { (ja) anchorsearch { /NOKANJI false def } { /NOKANJI true def } ifelse } { /NOKANJI true def } ifelse clear } ifelse
+currentdict /KANJI known { /NOKANJI false def } if
currentdict /NOPAUSE known /NOPAUSE exch def
currentdict /NOPLATFONTS known /NOPLATFONTS exch def
currentdict /NOPROMPT known /NOPROMPT exch def
With this fixes,
* if LANG=ja*, then NOKANJI is unset, so kanji font will be loaded
* if -dKANJI is specified, even if LANG is not ja*, kanji font will be loaded
* if -dNOKANJI is specified, even if LANG is ja*, kanji font will not be
loaded
* otherwise, kanji font will not be loaded
So, to use kanji fonts, user should specify
- set LANG environment variable to ja (or ja_JP, ja_JP.eucJP, ...)
or
- gs -dKANJI
If you don't need kanji fonts,
- *DON'T* set LANG to ja (or ja_JP, ja_JP.eucJP, ...)
or
- gs -dNOKANJI (even if LANG=ja*, this is default behavior by Japanese patch)
Thanks,
Fumitoshi UKAI