[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[mgp-users 01193] Re: How change font substitutions for mgp2ps?
- To: tim@consultix-inc.com
- Subject: [mgp-users 01193] Re: How change font substitutions for mgp2ps?
- From: Yoshifumi Nishida <nishida@csl.sony.co.jp>
- Date: Wed, 11 Jun 2003 02:12:56 -0700 (PDT)
- Cc: mgp-users@mew.org
- Delivered-to: mailing list mgp-users@mew.org
- In-reply-to: <>
- Mailing-list: contact mgp-users-help@mew.org; run by ezmlm
- References: <> <> <>
From: Tim Maher <tim@consultix-inc.com>
Subject: [mgp-users 01192] Re: How change font substitutions for mgp2ps?
Date: Wed, 11 Jun 2003 01:11:38 -0700
Message-ID: <>
> I downloaded the indicated ttfps file, but it doesn't compile
> on my SuSE 8.1 Linux system, failing with "O_BINARY undeclared",
> and
> locate '*.h' | xargs egrep -l '\<O_BINARY\>"
> shows that I don't have an include file anywhere that defines
> that constant.
You don't need O_BINARY for linux.
> I'm tempted to try all possible values for it and see which one
> works 8-}, but before I resort to that, can somebody recommend
> another version of ttfps?
How about this patch?
--
Yoshifumi Nishida
nishida@csl.sony.co.jp
diff -rc ttfps2.orig/ps.c ttfps2/ps.c
*** ttfps2.orig/ps.c 1998-10-26 09:17:08.000000000 -0800
--- ttfps2/ps.c 2003-06-11 02:03:57.000000000 -0700
***************
*** 2,7 ****
--- 2,8 ----
#include <stdio.h>
#ifndef WIN32
+ #include <sys/types.h>
#include <unistd.h>
#else
#include <io.h>
diff -rc ttfps2.orig/ttfps.c ttfps2/ttfps.c
*** ttfps2.orig/ttfps.c 1998-10-26 09:17:10.000000000 -0800
--- ttfps2/ttfps.c 2003-06-11 02:11:49.000000000 -0700
***************
*** 69,75 ****
optind = 1;
#endif
! if((fd=open(argv[optind],O_RDONLY | O_BINARY))<0)
syserror("Error opening input file");
if((out=fopen(argv[optind+1],"wb"))==NULL)
--- 69,75 ----
optind = 1;
#endif
! if((fd=open(argv[optind],O_RDONLY))<0)
syserror("Error opening input file");
if((out=fopen(argv[optind+1],"wb"))==NULL)