xref: /plan9/sys/src/cmd/gs/lib/FAPIfontmap (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1%!
2% $Id: FAPIfontmap,v 1.6 2002/06/07 20:21:16 igor Exp $
3% This is a sample map file for FAPI fonts.
4
5%
6% The map is a set of records like this :
7%
8%  /font_name options_dict ;
9%
10% where options_dict is a dictionary with the following entries :
11%
12% Key       Type      Description
13% Path      string    Absolute path to font file, or relative path to font file from
14%                     the GS_EXTFONTPATH value.
15% FontType  interger  PostScript type for this font. Only 1 and 42 are currently allowed.
16%                     Note that this is unrelated to the real type of the font file -
17%                     the bridge will perform format conversion.
18% FAPI      name      Name of the renderer to be used with the font. Only /AgfaUFST is now allowed.
19% SubfontId integer   (optional) Index of the font in font collection, such as FCO or TTC.
20%                     It is being ignored if /Path doesn't specify a collection.
21%                     Default value is 0.
22% Decoding  name      (optional) The name of a Decoding resource to be used with the font.
23%                     If specified, "xlatmap" doesn't work for this font.
24%
25% Use regular Postscript syntax.
26%
27% Examples :
28%
29%  /ArialTT     << /Path (arial.ttf) /FontType 1 /FAPI /AgfaUFST >> ;
30%  /CourierTT   << /Path (F:/WIN2000/Fonts/cour.ttf) /FontType 1 /FAPI /AgfaUFST >> ;
31%  /FCO1        << /Path (F:/AFPL/Agfa/fontdata/MTFONTS/PCLPS3/MT1/PCLP3__G.FCO) /FontType 42 /FAPI /AgfaUFST /SubfontId 10 >> ;
32%
33
34