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