From: wolff@inf.fu-berlin.de (Thomas Wolff)
Subject: Re: How to Make bitmaps out of Outlines??
Keywords: bit-maps
Organization: Free University of Berlin, Germany
Date: Thu, 30 Jul 1992 15:33:04 GMT

dodel@CAM.ORG (Jean-Pierre Dodel) writes:

>I am looking for a program that creates bitmap versions of the postscript
>version of a given font. My problem is that I have the postscript fonts
>(.PFB) and the .PFM files and I would like to create the corresponding
>bitmaps (.ABF, I think).

Buy any font from Adobe. Along with it somes a program called font foundry which 
can create .abf files and others. The problem is that .abf files are only created 
as an intermediate step and then deleted again. Since I need them to create screen 
fonts for another machine (Sun/FrameMaker), I had to find out how to get them:
You can either try to interrupt the generation process at the right point and hope 
that you are lucky and foundry does not recognize this as an error and delete all 
intermediate stuff right away, or you find out how to use the elementary programs 
called by the interactive foundry program itself - Here it is:

Call the command file abf.bat with 3 parameters:
1. font file name (without .pfb suffix)
2. file name for output files (= 1. parameter shortened to at most 6 characters)
3. (optional) resolution parameter (mentioned below)

The problem is that .abf files are parameterized with (apparently) the 
screen resolution. Adobe's foundry uses the following sizes (to be modified or 
given as parameter in abf.bat):
"CGA" and "EGA low"	91 48
"EGA high", "Hercules", "Xerox/AT&T ..."	91 72
all other video cards listed in the program	91 91

Still the problem is: which resolution is the right one if generating screen font 
files for a different machine (like my Sun)? By trial and look I found out that it 
must be something between 71 71 and 76 76 or around. Can anyone who knows about this 
tell (and explain)?

The encoding you wish to select (instead of FRAME.ENC below) might be W.ENC for 
windows (that file is included with the foundry program).
If screen fonts for other platforms are generated, more characters might be 
required to be included. I use the encoding file listed below which may be used to 
generate all characters that FrameMaker (on a Sun) needs.

Thank you, Adobe, for this great support for people who buy fonts for other than 
MSDOS machines!

Thomas Wolff
Freie Universit:at Berlin
wolff@inf.fu-berlin.de

Files:
--------- ABF.BAT: ---------
@ echo off

set name=%1
set namo=%2
set sizes=10 12 14 18 24
set reso=73						<--- see remarks above
if not "%3"=="" set reso=%3
echo generating for resolution %3 %3

echo StartTypeface > %namo%.mb
echo Resolution %reso% %reso% >> %namo%.mb
echo Orientation Portrait >> %namo%.mb
echo StandardEncoding FRAME.ENC >> %namo%.mb		<--- see remarks above
echo SpecialEncoding  >> %namo%.mb
for %%s in (%sizes%) do call makemb %namo% %%s
echo EndTypeface >> %namo%.mb

MAKEBIT.EXE -i %namo%.MB %name%.pfb
del %namo%.mb

for %%s in (%sizes%) do MAKEABF.EXE %namo%%%s.BIT

del %namo%*.bit

pkzip %namo% %namo%*.abf	\ This is 
del %namo%*.abf			/ optional
--------- MAKEMB.BAT: ---------
set namo=%1
set size=%2
echo StartFont >> %namo%.mb
echo PointSize  %size% >> %namo%.mb
echo OutFile %namo%%size%.bit >> %namo%.mb
echo EndFont >> %namo%.mb
--------- FRAME.ENC: ---------
%
% Copyright 1989 Adobe Systems Inc. All Rights Reserved.
% This encoding vector represents the differences between the PostScript
% standard encoding and the MS-Windows ANSI character set.
% Digby Horner - 01/11/89
% yh - 08/27/91  Added some characters for Windows 3.1
% rm - 11-21-91  added tilde @ 152 and circumflex @ 136 for win 3.1
%
MaxIndex 255
MaxEncoded 255
%
StartEncoding
1   breve
2   caron
3   dotaccent
4   dotlessi
5   fi
6   fl
7   hungarumlaut
8   ogonek
14  Zcaron
15  fraction
16  ring
17  zcaron
39  quotesingle
96  grave
128 .notdef
129 .notdef
130 quotesinglbase
131 florin
132 quotedblbase
133 ellipsis
134 dagger
135 daggerdbl
136 circumflex
137 perthousand
138 Scaron
139 guilsinglleft
140 OE
141 .notdef
142 .notdef
143 .notdef
144 .notdef
145 quoteleft
146 quoteright
147 quotedblleft
148 quotedblright
149 bullet
150 endash
151 emdash
152 tilde
153 trademark
154 scaron
155 guilsinglright
156 oe
157 .notdef
158 .notdef
159 Ydieresis
160 space
161 exclamdown
162 cent
163 sterling
164 currency
165 yen
166 brokenbar
167 section
168 dieresis
169 copyright
170 ordfeminine
171 guillemotleft
172 logicalnot
173 minus
174 registered
175 macron
176 degree
177 plusminus
178 twosuperior
179 threesuperior
180 acute
181 mu
182 paragraph
183 periodcentered
184 cedilla
185 onesuperior
186 ordmasculine
187 guillemotright
188 onequarter
189 onehalf
190 threequarters
191 questiondown
192 Agrave
193 Aacute
194 Acircumflex
195 Atilde
196 Adieresis
197 Aring
198 AE
199 Ccedilla
200 Egrave
201 Eacute
202 Ecircumflex
203 Edieresis
204 Igrave
205 Iacute
206 Icircumflex
207 Idieresis
208 Eth
209 Ntilde
210 Ograve
211 Oacute
212 Ocircumflex
213 Otilde
214 Odieresis
215 multiply
216 Oslash
217 Ugrave
218 Uacute
219 Ucircumflex
220 Udieresis
221 Yacute
222 Thorn
223 germandbls
224 agrave
225 aacute
226 acircumflex
227 atilde
228 adieresis
229 aring
230 ae
231 ccedilla
232 egrave
233 eacute
234 ecircumflex
235 edieresis
236 igrave
237 iacute
238 icircumflex
239 idieresis
240 eth
241 ntilde
242 ograve
243 oacute
244 ocircumflex
245 otilde
246 odieresis
247 divide
248 oslash
249 ugrave
250 uacute
251 ucircumflex
252 udieresis
253 yacute
254 thorn
255 ydieresis
EndEncoding
---------
End of posting.