From: kazama@square.ntt.jp (Kazuhiro Kazama)
Newsgroups: fj.sys.mac
Subject: Re: System 7 FAQ(revised)
Date: 8 Apr 92 13:37:57 GMT
Distribution: fj
Organization: NTT Software Laboratories, Tokyo, Japan.
In-reply-to: kaneko@icsi.Berkeley.EDU's message of 4 Apr 1992 10:58:19 JST

$@Iw4V!w#N#T#T%=%U%H8&$G$9!#(J

$@!!K]Lu$4$/$m$&$5$^$G$9!#=EMW(J$@$J>pJs$,<j7Z$KF@$i$l$F!"Hs>o$KJXMx$@$H;W$$(J
$@$^$9!#(J

In article <KANEKO.92Apr3175819@axiom.icsi.Berkeley> kaneko@icsi.Berkeley.EDU (Seiji Kaneko) writes:
 > $@#A#1#5!'(JPS-Trimmer$@$H$$$&(JControl Panel $@$r<j$KF~$l(J$@$k$+!"(JStripFonts$@$H$$(J
 > $@$&%"%W%j%1!<%7%g%s$r<j$KF~$l$F(JPostScript$@%U%!%$%k$NBg$-$5$rD4@0$7$F2<(J
 > $@$5$$!#(J$@$^$?$O!"(JTrueType$@$N%U%)%s%H$r;H$C$F$$$J$$$+3N$+$a$F2<$5$$!#(J
 > 
 > $@LuCm!'>e5-%=%U%H$NAG@-$OL$3NG'!#<gMW(J$@%5%$%H$K$O$J$$$7!"%7%g%C%W$N%j%9(J
 > $@%H$K$b$J$$!#(J

$@!!(Jinfo-mac$@%"!<%+%$%V!"$D$^$j(Jsumex-aim.stanford.edu$@$K(J$@$"$k$h$&$G$9$h!#(J
ps-trimmer-101.hqx$@$O(Jcp$@$N2<$G!"(Jstrip-fonts.hqx$@$O(Jutil$@$N2<$G$9!#:G8e$K%"(J
$@%V%9%H%i%/%H$N(J$@3:Ev$9$kItJ,$r$D$1$F$*$-$^$9!#(J

#### BINHEX     ps-trimmer-101.hqx   ****

Date: Fri, 3 Jan 92 11:18:05 -0800 
From: Hugo M. Ayala <hugo@apple.com>
Subject: PS-Trimmer-1.0.1 

This is the next revision of the control panel 'Trimmer' which reduces
the size of PostScript files when printing with the LaserWriter 7.0
driver.  This version fixes some problems (from 1.0) in dealing with
Suitcase and Font/DA Juggler.  Also, it fixes some problems where the
font type shown is incorrect in systems not running TrueType.

This utility is useful for people who do their printing by first
saving a PostScript file using the LaserWriter driver and then
transmitting it to a service bureau or a UNIX spooler.  Using this
control panel you can reduce the size of your PostScript files by up
to half (results will vary from document to document).

Hugo M. Ayala
hugo@apple.com

PS: the previous version was posted under /util

#### BINHEX     strip-fonts.hqx   ****

From: elliott@cs.wisc.edu (James Elliott)
Subject: StripFonts: Save time uploading PostScript documents (part 1/2)
Organization: U of Wisconsin CS Dept
Date: Sat, 15 Jun 91 03:02:44 GMT

What is StripFonts?
------------------

StripFonts is a program designed to be useful to a very specific set
of people: those who frequently print documents by creating a
PostScript file on the Mac, transferring that file to a UNIX machine,
and sending it to a PostScript-compatible printer which is networked
to the UNIX machine. In particular, it is aimed at people who use
Adobe Type Manger, or who frequently use non-standard PostScript
typefaces; in other words, people who have PostScript outline fonts in
their system folders. It is also helpful to people using System 7, who
no longer have the option of omitting the Apple ProcSet from their
PostScript files.

The presence of outline fonts in the system folder causes the printer
driver to include a copy of the PostScript font definition of each
font used in the document. This is because there is no way for the
printer driver to know in advance which fonts will be available on the
particular printer that you end up using (different printers have
different sets of fonts built in, or on disk). When the printer is
connected to the Macintosh itself, this is not a problem, since the
Mac can ask the printer at the time of printing. However, this
interaction is not possible when the printing will be performed at a
later time from a different machine.

The font descriptions can increase the size of the PostScript file to
a startling degree, making the file-transfer process quite unwieldy.
This is where StripFonts comes into play. The StripFonts package
allows you remove the font definitions from a PostScript file before
sending it to the UNIX machine. It can learn which fonts are built in
to the printer that you will be using, and remove them "permanently"
from the file, which will speed up printing time as well. StripFonts
will also let you keep copies of non-built-in typefaces in a directory
under UNIX, and omit those font definitions during the transfer
between the Mac and the UNIX machine, saving greatly on transfer time.
They need to be re-inserted into the file before it can be printed, or
the printer will not be able to use the typefaces; the UNIX side of
StripFonts does this. A similar trick can be used to temporarily
remove the ProcSet which teaches the printer the "shorthand" that the
Mac's LaserWriter driver uses.

The current version of StripFonts can tell the difference between
PostScript and TrueType fonts, and has no problem keeping both
versions of a font, even if they have the same name. It also has an
"others" category for font types that it does not recognize; for
example, Macintosh bitmap fonts for which no outlines exist.

In my experience with using StripFonts, the time saved in uploading is
considerable. Typical documents (before stripping) for me are about
600K; after stripping they are cut down to about 40K. After adding the
support for multiple font types and ProcSet removal, I created a test
document using an Adobe PostScript font and a bitmap font. It was 300K
bytes long. Stripping out the fonts and the ProcSet cut it down to 2K!
The UNIX end reconstituted and printed it just fine.

Note that if you use TrueType fonts in a document the TrueType
rendering engine needs to be included so that the PostScript printer
knows how to deal with the fonts. This is pretty big, on the order of
100K all by itself. I don't see any easy way for StripFonts to remove
it, either, since there are no comments bracketing it to identify it
or provide a version number. I can't really trust the code itself to
remain static enough to blindly edit it out. Apple, you could help us
out here by making this code easier to locate.


Instructions
-----------
StripFonts comes in two parts, a Macintosh side, for which I supply a
standalone application, and a UNIX side, which is presently
implemented in C-shell scripts and Emacs LISP, to be interpreted by
the Free Software Foundation's GNU-Emacs editor. (Yes, I'm a little
schizophrenic to like both Macs and the F.S.F. but what can you do?)
If you don't have access to GNU-Emacs and don't want to try finding
and installing it, you could try lighting a fire under me (or someone
else) to write a more portable C version of the Unix side of
StripFonts. I will likely do it very soon if nobody else does, but
please let me know if you write one, so that I can include it in
future distributions!

The Mac application is called "StripFonts" and should be prominently
present in this archive. Directions on how to use it are in the file
"Mac help" until I manage to track down (or write) a nice
public-domain help interface which uses the Think Class Library, and
get a version of Think C that supports Balloon Help.

The UNIX portions are in a shar archive that was posted separately;
this archive has its own Readme file.


Distribution
-----------

StripFonts is free, and is distributed under John Rotenstein's
wonderful HappiWare licensing scheme: If you like it, remember to
smile! I would appreciate feedback about who is using the program,
stating what you like, and what you would like to see, but I can
obviously not promise to implement every suggested improvement since
I'm supposed to be working on my degree instead of this kind of
project.

If you really find the program useful, please send me a picture
postcard of your home town. If you're rich and want to help foster
future development by this impoverished student I wouldn't turn down
money either, but it should be clear that you are not expected (let
alone obligated) to pay for using this program.

Although it is free, it is not in the public domain in the following
sense: I retain the copyright on the package and set the terms under
which distribution may occur. Those terms are: You may freely
distribute copies of StripFonts as long as you do so in unmodified
form, and include all files and documentation which are present in
this archive. You may not charge for copies of StripFonts. User groups
and similar organizations may include StripFonts on disks of collected
software, as long as they do not charge more than $10 for the disks.
Bulletin boards, archives and anonymous FTP sites may freely offer
StripFonts. Portions of the code are Copyright (c) 1989 Symantec
Corporation; this does not adversely affect the above-outlined
distribution terms because of the reasonable nature of their licensing
agreement.

I can be reached as elliott@cs.wisc.edu or,

	James Elliott
	746 W. Main St. #302
	Madison, WI 53715

Trademarks.
-----------
UNIX is a trademark of AT&T Bell Laboratories. PostScript and Adobe
Type Manager are trademarks of Adobe Systems, Inc.
--
	$@Iw4V0lMN(J (kazama@square.ntt.jp)
	NTT$@%=(J$@%U%H%&%'%"8&5f=j(J $@%=%U%H%&%'%"4pAC5;=Q8&5fIt(J
	$@J,;67?%=%U%H%&%'%"8&5f%0%k!<%W(J