749209902c
Packages Collection. Pcf2bdf is a font de-compiler. It converts X font from Portable Compiled Format (PCF) to Bitmap Distribution For- mat (BDF). It can also accept a compressed/gzipped PCF file as input, but gzip must be found in your PATH. FONTBOUNDINGBOX in a BDF file is not used by bdftopcf , so pcf2bdf generate irresponsible values.
31 lines
779 B
Text
31 lines
779 B
Text
$NetBSD: patch-aa,v 1.1.1.1 2002/12/31 05:44:43 kei Exp $
|
|
|
|
--- pcf2bdf.cc.orig Mon Oct 21 01:35:29 2002
|
|
+++ pcf2bdf.cc Tue Dec 31 14:36:08 2002
|
|
@@ -577,7 +577,7 @@
|
|
}
|
|
if (ifilename)
|
|
{
|
|
- ifp = fopen(ifilename, "rb");
|
|
+ ifp = fopen(ifilename, "r");
|
|
if (!ifp)
|
|
return error_exit("failed to open input pcf file");
|
|
}
|
|
@@ -595,7 +595,7 @@
|
|
fclose(ifp);
|
|
char buf[1024];
|
|
sprintf(buf, "gzip -dc %s", ifilename); // TODO
|
|
- ifp = popen(buf, "rb");
|
|
+ ifp = popen(buf, "r");
|
|
_setmode(fileno(ifp), O_BINARY);
|
|
read_bytes = 0;
|
|
if (!ifp)
|
|
@@ -604,7 +604,7 @@
|
|
|
|
if (ofilename)
|
|
{
|
|
- ofp = fopen(ofilename, "wb");
|
|
+ ofp = fopen(ofilename, "w");
|
|
if (!ofp)
|
|
return error_exit("failed to open output bdf file");
|
|
}
|