~ubuntu-branches/ubuntu/karmic/cjk/karmic

« back to all changes in this revision

Viewing changes to utils/thaifont/tools/garuda.fontinst

  • Committer: Bazaar Package Importer
  • Author(s): Danai SAE-HAN (韓達耐)
  • Date: 2006-11-01 00:31:57 UTC
  • Revision ID: james.westby@ubuntu.com-20061101003157-jppzphxw4tti1wlu
Tags: upstream-4.7.0+cvs20061019
Import upstream version 4.7.0+cvs20061019

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
% garuda.fontinst
 
2
 
 
3
% Copyright (C) 1994-2006  Werner Lemberg <wl@gnu.org>
 
4
%
 
5
% This program is free software; you can redistribute it and/or modify
 
6
% it under the terms of the GNU General Public License as published by
 
7
% the Free Software Foundation; either version 2 of the License, or
 
8
% (at your option) any later version.
 
9
%
 
10
% This program is distributed in the hope that it will be useful,
 
11
% but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
% GNU General Public License for more details.
 
14
%
 
15
% You should have received a copy of the GNU General Public License
 
16
% along with this program in doc/COPYING; if not, write to the Free
 
17
% Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
 
18
% MA 02110-1301 USA
 
19
 
 
20
\input fontinst.sty
 
21
 
 
22
\needsfontinstversion{1.918}
 
23
 
 
24
 
 
25
% we explicitly set all slots in the encoding, so provide all glyph names
 
26
% in AFM files equally (this is, don't create `<glyph>-not' names)
 
27
\let\setnotglyph \setrawglyph
 
28
 
 
29
% we want warnings for missing glyphs
 
30
\fontinstcc
 
31
\add_to\pre_fourth_etx_pass_hook{
 
32
  \def\do_slot{
 
33
    \if_undefined{g-\slot_name}\then
 
34
      \fontinstwarningnoline{fontinst}
 
35
                            {missing~glyph~`\slot_name'\space
 
36
                             for~slot~\the\slot_number\space
 
37
                             in~font~`\out_filename'}
 
38
    \fi
 
39
    \do_character
 
40
  }
 
41
}
 
42
\normalcc
 
43
 
 
44
 
 
45
% create PL files and an FD file
 
46
\installfonts
 
47
  \setint{fontdimen(2)}{500}    % SPACE
 
48
  \setint{fontdimen(3)}{300}    % STRETCH
 
49
  \setint{fontdimen(4)}{100}    % SHRINK
 
50
  \setint{fontdimen(6)}{1000}   % QUAD
 
51
  \setint{fontdimen(7)}{0}      % EXTRASPACE
 
52
 
 
53
  \installrawfont{fgdr8z}{garuda,c90}{c90}
 
54
                 {C90}{garuda}{m}{n}{}
 
55
  \installrawfont{fgdb8z}{garuda_b,c90}{c90}
 
56
                 {C90}{garuda}{bx}{n}{}
 
57
  \installrawfont{fgdbo8z}{garuda_bo,c90}{c90}
 
58
                 {C90}{garuda}{bx}{sl}{}
 
59
  \installrawfont{fgdo8z}{garuda_o,c90}{c90}
 
60
                 {C90}{garuda}{m}{sl}{}
 
61
\endinstallfonts
 
62
 
 
63
 
 
64
\input finstmsc.sty
 
65
 
 
66
 
 
67
% create the c90.enc file
 
68
\installfonts
 
69
  % the `makeenc' flag is used in c90.etx
 
70
  \setint{makeenc}{1}
 
71
  \setstr{encodingname}{C90Encoding}
 
72
  \etxtoenc{c90}{c90}
 
73
\endinstallfonts
 
74
 
 
75
\end
 
76
 
 
77
% end of garuda.fontinst