From owner-FreeBSD-users-jp@jp.freebsd.org  Wed Jun 24 17:58:30 1998
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.8.8+3.0Wbeta13/8.7.3) id RAA29714;
	Wed, 24 Jun 1998 17:58:30 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from leo.ec.t.kanazawa-u.ac.jp (leo.ec.t.kanazawa-u.ac.jp [133.28.132.4])
	by jaz.jp.freebsd.org (8.8.8+3.0Wbeta13/8.7.3) with ESMTP id RAA29707
	for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 24 Jun 1998 17:58:29 +0900 (JST)
	(envelope-from hirano@t.kanazawa-u.ac.jp)
Received: from localhost (hirano@pisces.ec.t.kanazawa-u.ac.jp [133.28.132.56])
	by leo.ec.t.kanazawa-u.ac.jp (8.9.0/3.7W) with ESMTP id RAA18450
	for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 24 Jun 1998 17:58:20 +0900 (JST)
To: FreeBSD-users-jp@jp.freebsd.org
In-Reply-To: Your message of "Wed, 06 Aug 1997 14:29:57 +0900"
	<199708060529.OAA14329@edison.ee.t.u-tokyo.ac.jp>
References: <199708060529.OAA14329@edison.ee.t.u-tokyo.ac.jp>
X-Mailer: Mew version 1.92.4 on Emacs 19.28 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Message-Id: <19980624175820B.hirano@t.kanazawa-u.ac.jp>
Date: Wed, 24 Jun 1998 17:58:20 +0900
From: Akihiro HIRANO <hirano@t.kanazawa-u.ac.jp>
X-Dispatcher: imput version 971024
Lines: 170
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=24]
X-Sequence: FreeBSD-users-jp 29942
Subject: [FreeBSD-users-jp 29942] Re: can't print PostScript file (tgif)
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

$BJ?Ln(B@$B6bBtBg$G$9!#(B

$B!!>/!98E$$OC$G$9$,!D(B

$B!Z;0ED$5$s![(B
> >> Newsgroups: fj.lang.postscript,fj.comp.texhax,fj.comp.dev.printer
> >> Subject: PS with tgif-generated EPS figure
> >> Message-ID: <5cm87t$28d@gpxgw.gpx.sony.co.jp>
> 
> $B$rFI$`$H(B, port $B$N(B tgif-2.16J $B$d(B, tgif-3.0J $B$KEv$F$F$$$k%Q%C%A(B
> (kawamata@sra.co.jp $B$5$s:n(B)$B$r%Y!<%9$K$7$?(B,
> $B?7$7$$%Q%C%A$,8x3+$5$l$F$$$?(B, $B$H$$$&$3$H$J$N$G$9$M(B.
> 
> $B$3$A$i$N%Q%C%A$G$J$$$HF0:n$7$J$$%W%j%s%?$,$"$k$H$9$l$P(B,
> tgif-3.0J $B$N%Q%C%A$b=$@5$7$F$b$i$&$h$&F|N)$NDMED$5$s$KO"Mm$7$?J}$,(B
> $BNI$$$N$G(B, $B$I$J$?$+?7$7$a$N%W%j%s%?$r(B
> $B$*;}$A$NJ};n$7$FJs9p$/$@$5$$$^$;$s$+(B?

$B!!$3$N7o!"$=$N8e2?$+?JE8$O$"$j$^$7$?$G$7$g$&$+!)(BFreeBSD 2.2.6-RELEASE
$B$N(Bpackages$B$K$"$k(Btgif$B$,(BCIDeucfont.ps$B$r;H$C$F$$$k$"$?$j$+$i;!$9$k$K!"$=(B
$B$N$^$^$N$h$&$J5$$,$7$^$9$,!D(B

$B!!(BCanon LBP-730PS$B$,FO$$$?$N$G!"(BFreeBSD 2.2.6-RELEASE$BIUB0$N(Btgif-3.0J
package$B$G%F%9%H$7$F$_$?$i!"$7$C$+$j$H$3$N>I>u$KEv$?$j$^$7$?!#$=$3$G!"(B
$B>e5-$N(Bfj$B$N5-;v$r<h$j4s$;$F!"L5M}LpM}(Btgif-3.0J$B$K%Q%C%A$rEv$F$?$H$3$m!"(B
$BL5;v$K0u:~$G$-$k$h$&$K$J$j$^$7$?!#%F%9%H$7$?$N$O!"(B

Canon LBP-730PS
$BIY;N%<%m%C%/%9(B LaserWind 3160PS ($B8E$$(B)
EPSON LP-8200PS2
Ghostscript 5.10 VFlib

$B$G$9!#(B

$B!!$3$N%a!<%k$N:G8e$K!":9J,$rIU$1$F$*$-$^$9!#(B-DCIDFONT216$B$rDI2C$7$F%3%s(B
$B%Q%$%k$9$k$H!"(B2.16J$BMQ%Q%C%A$HF1$8F0:n$r$7$^$9!#$d$C$F$$$k$3$H$O!"(Bps.c
$B$N(B

static char *psKanjiFontMacro[] =

$B$NItJ,$r$^$k$4$H:9$7BX$($k$@$1$G$9!#(B
----
$BJ?Ln989((B@$B6bBtBg3X9)3XIt(B $BEE5$>pJs9)3X2J(B
hirano@t.kanazawa-u.ac.jp

========================================================================
--- ps.c.dist	Wed Jun 24 14:53:00 1998
+++ ps.c	Wed Jun 24 15:28:21 1998
@@ -248,6 +248,7 @@
   NULL
 };
 
+#if ! defined(CIDFONT216)
 static char *psKanjiFontMacro[] =
 {
   "%%Title: eucfont.ps",
@@ -344,6 +345,113 @@
   "} def",
   NULL
 };
+#else /* CIDFONT216 */
+static char *psKanjiFontMacro[] =
+{ 
+  "%%Title: neweucfont.ps",
+  "%%Creator: mushizak@adobe.com",
+  "%%CreationDate: Dec 6 1996",
+  "%%BeginResource: file (neweucfont.ps)",
+  "",
+  "% neweucfont.ps for tgif application",
+  "% based on eucfont.ps yohtaki@cis.ibaraki.ac.jp 1996-9-29",
+  "% based on eudfont.ps 1996-09, kawamata@sra.co.jp",
+  "",
+  "/copyfont {  % fontdict n copyfont => dict",
+  " 1 index length add dict begin",
+  " {1 index dup /FID eq exch /UniqueID eq or {pop pop} {def} ifelse} forall",
+  " currentdict end",
+  "} bind def",
+  "",
+  "/eucfont {  % /newname /asciifont /euckanjifont eucfont => -",
+  " dup findfont",
+  " dup /FontType get 0 ne {pop /eucfont errordict /rangecheck get exec} if",
+  " 3 -1 roll findfont 2 copyfont begin",
+  "  /CDevProc [",
+  "   currentdict /CDevProc known {",
+  "    /CDevProc load dup type /operatortype ne {/exec cvx} if",
+  "   } {",
+  "    /pop cvx",
+  "   } ifelse",
+  "   {pop pop pop pop 5 index 5 index 0 0} /exec cvx",
+  "  ] cvx bind def",
+  "  /FontName /TGIFRoman def",
+  " FontName currentdict end definefont",
+  " exch",
+  " dup /FMapType get dup dup 9 eq exch 6 eq or {",
+  "  9 eq {",
+  "   /CIDParams/ProcSet resourcestatus {",
+  "    pop pop false/CIDParams/ProcSet findresource/SetBuildCompatible get exec",
+  "   } if",
+  "   exch pop 2 index 4 1 roll",
+  "   /CIDInit/ProcSet findresource begin",
+  "   dup /WMode known {/WMode get 1 eq} {pop false} ifelse {",
+  "    [exch /TGIFRoman] beginrearrangedfont",
+  "    /WMode 1 def",
+  "    1 beginusematrix [0 -1 1 0 -.3 0] endusematrix",
+  "   } {",
+  "    [exch /TGIFRoman] beginrearrangedfont",
+  "    /WMode 0 def",
+  "   } ifelse",
+  "   1 usefont",
+  "   1 beginbfrange",
+  "    <00> <7f> <00>",
+  "   endbfrange",
+  "   endrearrangedfont",
+  "   end",
+  "   /CIDParams/ProcSet resourcestatus {",
+  "    pop pop true/CIDParams/ProcSet findresource/SetBuildCompatible get exec",
+  "   } if",
+  "   findfont dup /WMode get 1 eq {",
+  "    [0 1 -1 0 0 .3] makefont",
+  "    dup /FontName get exch definefont",
+  "   } if pop",
+  "  } {",
+  "   3 -1 roll pop",
+  "   1 copyfont begin",
+  "    /FDepVector FDepVector dup length array copy def",
+  "    FDepVector exch 0 exch put",
+  "    /FontName exch def",
+  "    currentdict /WMode known not {/WMode 0 def} if",
+  "    WMode 1 eq {",
+  "     1 1 FDepVector length 1 sub {",
+  "      dup FDepVector dup 4 1 roll exch get",
+  "      [ 0 1 -1 0 0 0.3 ] makefont put",
+  "     } for",
+  "    } if",
+  "   FontName currentdict end definefont pop",
+  "  } ifelse",
+  " } {",
+  "  dup 2 eq exch 5 eq or {",
+  "   3 -1 roll pop",
+  "   1 copyfont begin",
+  "    /Encoding Encoding FMapType 2 eq {128 128} {256 256} ifelse getinterval def",
+  "    /FontName /TGIFKanji def",
+  "   FontName currentdict end definefont",
+  "   12 dict begin",
+  "    /FontType 0 def",
+  "    /FMapType 4 def",
+  "    /FontBBox {0 0 0 0} def",
+  "    /Encoding [0 1] def",
+  "    dup /WMode known {dup /WMode get} {0} ifelse /WMode exch def",
+  "    WMode 0 eq {",
+  "     /FontMatrix [1 0 0 1 0 0] def",
+  "    } {",
+  "     /FontMatrix [0 1 -1 0 0 .3] def",
+  "     exch [0 -1 1 0 -.3 0] makefont exch",
+  "    } ifelse",
+  "    2 array astore /FDepVector exch def",
+  "    /FontName exch def",
+  "   FontName currentdict end definefont pop",
+  "  } {",
+  "   pop /eucfont errordict /rangecheck get exec",
+  "  } ifelse",
+  " } ifelse",
+  "} bind def",
+  "%%EndResource",
+  NULL
+};
+#endif /* CIDFONT216 */
 
 static char *psMinRadiusMacro[] = {
   "%",
