From owner-ports-jp@jp.FreeBSD.org Tue Feb 22 20:06:31 2005
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id j1MB6Vx18535;
	Tue, 22 Feb 2005 20:06:31 +0900 (JST)
	(envelope-from owner-ports-jp@jp.FreeBSD.org)
Received: from ksta.ms.u-tokyo.ac.jp (ksta.ms.u-tokyo.ac.jp [157.82.17.219])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id j1MB6V818530
	for <ports-jp@jp.FreeBSD.org>; Tue, 22 Feb 2005 20:06:31 +0900 (JST)
	(envelope-from koma2@ms.u-tokyo.ac.jp)
Received: by ksta.ms.u-tokyo.ac.jp (Postfix, from userid 1003)
	id B375B5650D; Tue, 22 Feb 2005 20:06:30 +0900 (JST)
From: KOMATSU Shinichiro <koma2@ms.u-tokyo.ac.jp>
To: ports-jp@jp.FreeBSD.org
Cc: SHIOZAKI Takehiko <st@be.to>, caffeine@m13.alpha-net.ne.jp, kanou@khdd.net
References: <20050222054942.GA49030%st@be.to> <200502220752.j1M7qx826069@castle.jp.FreeBSD.org>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="Pd0ReVV5GZGQvF3a"
Content-Disposition: inline
In-Reply-To: <200502220752.j1M7qx826069@castle.jp.FreeBSD.org>
User-Agent: Mutt/1.5.6i
Message-Id: <20050222110630.B375B5650D@ksta.ms.u-tokyo.ac.jp>
Reply-To: ports-jp@jp.FreeBSD.org
Precedence: list
Date: Tue, 22 Feb 2005 20:06:30 +0900
X-Sequence: ports-jp 15569
Subject: [ports-jp 15569] Re: C implementation of mkbold/mkitalic
Sender: owner-ports-jp@jp.FreeBSD.org
X-Originator: koma2@ms.u-tokyo.ac.jp
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+041223


--Pd0ReVV5GZGQvF3a
Content-Type: text/plain; charset=iso-2022-jp
Content-Disposition: inline

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

From: KANOU Hiroki <kanou@khdd.net>
Subject: [ports-jp 15568] Re: C implementation of mkbold/mkitalic
Date: Tue, Feb 22, 2005 at 04:53:57PM JST

> > $BJs9p$@$1$G$9$_$^$;$s$,!"$3$l$,5/$-$F$$$k$h$&$J5$G[$,$"$j$^$9!#(B
> > japanese/kappa20(ja-k20fonts-0.396_2)$B$r(Bbuild$B$9$k$H$-$K!"(B
> > mkbold-mkitalic-0.06_1$B$NJ}$N(Bmkitalic$B$r;H$&$H!"(B
> > 
> > mkitalic 10x20L2b.bdf > 10x20L2bi.bdf
> > bdftopcf 10x20L2bi.bdf | gzip -c > 10x20L2bi.pcf.gz
> > BDF Error on line 174: bad character name in BDF file
> > bdftopcf: bdf input, 10x20L2bi.bdf, corrupt
> > 
> > $B$N$h$&$JJ86g$,BgNL$K=P$^$9$,!"(Bmkitalic-1.0_1$B$NJ}$r;H$&$H!"(B
> > $B2?$b=P$^$;$s!#(B
> 
> $BJQ498e$N(B BDF $B$N(B 174 $B9TL\$r8+$F$_$?$i!"(B'STARTCHAR ' $B$H$J$C$F$$$^$7$?!#(B
> $B85$O(B 'STARTCHAR %' $B$G$9!#(B
> 
> $B%=!<%9$r(B grep $B$7$F$_$k$H(B
> 	fprintf(stdout, buf);
> $B$N$h$&$J5-=R$,$?$/$5$s$"$k$N$G!"(Bbuf $B$K(B '%' $B$,F~$C$?J8;zNs$,Mh$F(B
> $B$*$+$7$J;v$K$J$C$?$N$G$O$J$$$+$H?dB,$7$F$$$^$9!#(B
> 
> $B$3$l$i$OA4It(B
> 	fputs(buf, stdout);
> $B$KCV$-49$($k$Y$-$@$H;W$$$^$9!#$=$N$[$&$,$4$/$o$:$+$G$9$,!"=hM}B.EY$b(B
> $B>e$,$k$O$:$G$9!#(B

$BJs9p!&%3%a%s%H$"$j$,$H$&$4$6$$$^$9!#!d(B $B1v:j$5$s!"<mLn$5$s(B
$B!t(B make $B$,DL$C$F$7$^$&$N$G%(%i!<$,=P$F$k$N$K5$IU$$$F$J$+$C$?!#!#!#(B(X_X;

$B$H$$$&$o$1$G!"E:IU$N(B patch $B$N$h$&$K(B
fprintf(stdout, buf); $B$H$J$C$F$k$H$3$m$r(B
$B5!3#E*$K(B fputs(buf, stdout); $B$KCV$-49$($F$_$?$H$3$m!"(B
$B%(%i!<$O=P$J$/$J$j$^$7$?!#(B
$B$3$l$GLdBj$J$$$h$&$G$7$?$i!"$3$N(B patch $B$r(B
x11-fonts/mkbold-mkitalic/files/ $B0J2<$KCV$/$h$&$K$7$h$&$H;W$&$N$G$9$,!"(B
$B$$$+$,$G$7$g$&!)(B

-- 
$B(.(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(/(B
                $B>.>>(B  $B?80lO/(B            
            koma2@ms.u-tokyo.ac.jp
            koma2@momonga-linux.org
     http://straycat.ms.u-tokyo.ac.jp/~koma2/
$B(1(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(0(B

--Pd0ReVV5GZGQvF3a
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-fprintf

--- mkbold.c.orig	Wed Nov  3 00:53:27 2004
+++ mkbold.c	Tue Feb 22 19:02:37 2005
@@ -55,12 +55,12 @@
       sscanf(buf, "%s", keyword);
       if (strcmp(keyword, "BITMAP") == 0) {
         bitmap = TRUE;
-        fprintf(stdout, buf);
+	fputs(buf, stdout);
         continue;
       }
       if (strcmp(keyword, "ENDCHAR") == 0) {
         bitmap = FALSE;
-        fprintf(stdout, buf);
+	fputs(buf, stdout);
         if (verbose) {
           progress_meter_print(meter);
         }
@@ -74,7 +74,7 @@
       hex_output(stdout, d, len);
       continue;
     }
-    fprintf(stdout, buf);
+    fputs(buf, stdout);
   }
   fclose(fp);
 
@@ -96,16 +96,16 @@
           (strcmp(keyword, "WEIGHT_NAME") == 0)) {
         /* replace the font property */
         replace_case(outbuf, buf, "Medium", "Bold");
-        fprintf(stdout, outbuf);
+	fputs(buf, stdout);
         continue;
       }
       if (strcmp(keyword, "CHARS") == 0) {
         max_chars = atoi(buf+6);
-        fprintf(stdout, buf);
+	fputs(buf, stdout);
         break;
       }
     }
-    fprintf(stdout, buf);
+    fputs(buf, stdout);
   }
   return max_chars;
 }
--- mkbolditalic.c.orig	Wed Nov  3 00:54:53 2004
+++ mkbolditalic.c	Tue Feb 22 19:03:58 2005
@@ -63,13 +63,13 @@
       if (strcmp(keyword, "BBX") == 0) {
         /* recast the metric information from the bounding box */
         recast_bbx(outbuf, &padding, &width, &height, &dx, dy, buf);
-        fprintf(stdout, outbuf);
+	fputs(buf, stdout);
         continue;
       }
       if (strcmp(keyword, "BITMAP") == 0) {
         bitmap = TRUE;
         count = 0;
-        fprintf(stdout, buf);
+	fputs(buf, stdout);
         continue;
       }
       if (strcmp(keyword, "ENDCHAR") == 0) {
@@ -81,7 +81,7 @@
         /* now thinking! */
         bitmap_make_bold_output(stdout, bmap, count, bdir, pile);
         /*bitmap_output(stdout, bmap, height);*/
-        fprintf(stdout, buf);
+	fputs(buf, stdout);
         if (verbose) {
           progress_meter_print(meter);
         }
@@ -94,7 +94,7 @@
       count++;
       continue;
     }
-    fprintf(stdout, buf);
+    fputs(buf, stdout);
   }
   fclose(fp);
 
@@ -117,34 +117,34 @@
       if (strcmp(keyword, "FONT") == 0) {
         /* replace the font property */
         replace_case(outbuf, buf, "Medium-R-", "Bold-I-");
-        fprintf(stdout, outbuf);
+	fputs(buf, stdout);
         continue;
       }
       if (strcmp(keyword, "WEIGHT_NAME") == 0) {
         /* replace the font property */
         replace_case(outbuf, buf, "Medium", "Bold");
-        fprintf(stdout, outbuf);
+	fputs(buf, stdout);
         continue;
       }
       if (strcmp(keyword, "SLANT") == 0) {
         /* replace the font property */
         replace_case(outbuf, buf, "\"R\"", "\"I\"");
-        fprintf(stdout, outbuf);
+	fputs(buf, stdout);
         continue;
       }
       if (strcmp(keyword, "FONTBOUNDINGBOX") == 0) {
         /* recast the metric information from the bounding box */
         recast_bbx(outbuf, padding, width, height, dx, dy, buf);
-        fprintf(stdout, outbuf);
+	fputs(buf, stdout);
         continue;
       }
       if (strcmp(keyword, "CHARS") == 0) {
         max_chars = atoi(buf+6);
-        fprintf(stdout, buf);
+	fputs(buf, stdout);
         break;
       }
     }
-    fprintf(stdout, buf);
+    fputs(buf, stdout);
   }
   return max_chars;
 }
--- mkitalic.c.orig	Wed Nov  3 00:55:07 2004
+++ mkitalic.c	Tue Feb 22 19:04:35 2005
@@ -59,13 +59,13 @@
       if (strcmp(keyword, "BBX") == 0) {
         /* recast the metric information from the bounding box */
         recast_bbx(outbuf, &padding, &width, &height, &dx, dy, buf);
-        fprintf(stdout, outbuf);
+	fputs(buf, stdout);
         continue;
       }
       if (strcmp(keyword, "BITMAP") == 0) {
         bitmap = TRUE;
         count = 0;
-        fprintf(stdout, buf);
+	fputs(buf, stdout);
         continue;
       }
       if (strcmp(keyword, "ENDCHAR") == 0) {
@@ -75,7 +75,7 @@
         }
         bitmap_make_slant(bmap, width, height, dx, dy, padding);
         bitmap_output(stdout, bmap, height);
-        fprintf(stdout, buf);
+	fputs(buf, stdout);
         if (verbose) {
           progress_meter_print(meter);
         }
@@ -88,7 +88,7 @@
       count++;
       continue;
     }
-    fprintf(stdout, buf);
+    fputs(buf, stdout);
   }
   fclose(fp);
 
@@ -111,28 +111,28 @@
       if (strcmp(keyword, "FONT") == 0) {
         /* replace the font property */
         replace_case(outbuf, buf, "-R-", "-I-");
-        fprintf(stdout, outbuf);
+	fputs(buf, stdout);
         continue;
       }
       if (strcmp(keyword, "SLANT") == 0) {
         /* replace the font property */
         replace_case(outbuf, buf, "\"R\"", "\"I\"");
-        fprintf(stdout, outbuf);
+	fputs(buf, stdout);
         continue;
       }
       if (strcmp(keyword, "FONTBOUNDINGBOX") == 0) {
         /* recast the metric information from the bounding box */
         recast_bbx(outbuf, padding, width, height, dx, dy, buf);
-        fprintf(stdout, outbuf);
+	fputs(buf, stdout);
         continue;
       }
       if (strcmp(keyword, "CHARS") == 0) {
         max_chars = atoi(buf+6);
-        fprintf(stdout, buf);
+	fputs(buf, stdout);
         break;
       }
     }
-    fprintf(stdout, buf);
+    fputs(buf, stdout);
   }
   return max_chars;
 }

--Pd0ReVV5GZGQvF3a--
