2
%%Title: japanese-shift-jis encoding
3
%%Creator: Taiji Yamada <taiji@aihara.co.jp> and gs-cjk project
4
%%Copyright: (C) 2001 Taiji Yamada and gs-cjk project
5
%%+ This script is part of GNU Ghostscript and is distributed under
6
%%+ the terms of the GNU General Public License. See the file COPYING
7
%%+ for more information.
8
%%BoundingBox: 30 150 530 650
13
------------------------------------------------------------------------\n\
14
This is a script to test CJK fonts such as CID-keyed fonts.\n\
15
If you have not done CID-keyed fonts installation and definitions at\n\
16
/Resource/CMap and CIDFnmap or /Resource/CIDFont of ghostscript, then\n\
17
this script can't work correctly.\n\
18
For details, please see README at http://www.gyve.org/gs-cjk/supplement.\n\
20
If you throw this script into a printer, it requires PostScript 3\n\
21
printer and CID-keyed fonts specified in this script.\n\
22
------------------------------------------------------------------------\n) def
24
/notice*stdout 4 dict begin
25
/*open {} def /*echo-n { =only } def /*echo { = } def /*close { flush } def
29
/notice*page 5 dict begin
32
gsave initmatrix /Courier findfont 11 scalefont setfont 50 *y moveto
34
*gs-cjk { (\n) search { *echo } { *echo-n exit } ifelse pop } loop
37
/*echo-n { dup type /stringtype ne { dup length string cvs } if show } def
38
/*echo { *echo-n /*y *y 11 sub def 50 *y moveto } def
39
/*close { grestore } def
44
product (Ghostscript) search not { pop } { pop pop pop QUIET not {
47
*gs-cjk { (\n) search { *echo } { *echo-n exit } ifelse pop } loop
55
dup /Font resourcestatus { pop pop findfont } {
58
(Error in findfont: ) *echo-n dup *echo
65
/orighandleerror errordict /handleerror get def
68
notice*page begin errordict begin $error begin
70
(Error of ) *echo-n errorname dup length string cvs *echo
78
/Ryumin-Light-RKSJ-V *findfont 25 scalefont setfont
80
(��M ���{�� �c���� ���) show
81
/Ryumin-Light-RKSJ-H *findfont 25 scalefont setfont
83
(��M Ghostscript) show
85
(���{�� Japanese) show
87
(������ horizontal writing) show
91
/Ryumin-Light-RKSJ-V *findfont [ 1 .3 0 1 0 0 ] makefont 20 scalefont setfont
92
100 275 moveto 20 2 div 0 rmoveto
93
(�Α�) dup stringwidth neg rmoveto show
94
/Ryumin-Light-RKSJ-H *findfont [ 1 0 .3 1 0 0 ] makefont 20 scalefont setfont
96
(�Α� Italic transformation) show
98
/Ryumin-Light-RKSJ-H *findfont 20 scalefont setfont
100
(Mincho Typeface ������) show
101
/GothicBBB-Medium-RKSJ-H *findfont 20 scalefont setfont
103
(Gothic Typeface �S�V�b�N��) show
105
/Times-Roman findfont 13 scalefont setfont
107
(* Japanese translation of "Ghostscript" is merely associative \
108
characters of these meanings.) show
110
(In Japanese articles, customarily we use just "Ghostscript" as it \