summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/CJK/utils/thaifont/dbtt-old/dbtt-old.fontinst
blob: 5b5ca25e8ea403f08885148eee56b3c60821ff90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
% dbtt-old.fontinst

\input fontinst.sty

\needsfontinstversion{1.918}


% we explicitly set all slots in the encoding, so provide all glyph names
% in AFM files equally (this is, don't create `<glyph>-not' names)
\let\setnotglyph \setrawglyph

% we want warnings for missing glyphs
\fontinstcc
\add_to\pre_fourth_etx_pass_hook{
  \def\do_slot{
    \if_undefined{g-\slot_name}\then
      \fontinstwarningnoline{fontinst}
                            {missing~glyph~`\slot_name'\space
                             for~slot~\the\slot_number\space
                             in~font~`\out_filename'}
    \fi
    \do_character
  }
}
\normalcc


% create PL files and an FD file
\installfonts
  \setint{fontdimen(2)}{500}    % SPACE
  \setint{fontdimen(3)}{300}    % STRETCH
  \setint{fontdimen(4)}{100}    % SHRINK
  \setint{fontdimen(6)}{1000}   % QUAD
  \setint{fontdimen(7)}{0}      % EXTRASPACE

  \installrawfont{fdbr8z}{dbtt,dbtt-old-alias,c90}{c90}
                 {C90}{dbss}{m}{n}{<-> s *[1.3]}
  \installrawfont{fdbb8z}{dbttb,dbtt-old-alias,c90}{c90}
                 {C90}{dbss}{bx}{n}{<-> s *[1.3]}
  \installrawfont{fdbbo8z}{dbttbi,dbtt-old-alias,c90}{c90}
                 {C90}{dbss}{bx}{sl}{<-> s *[1.3]}
  \installrawfont{fdbo8z}{dbtti,dbtt-old-alias,c90}{c90}
                 {C90}{dbss}{m}{sl}{<-> s *[1.3]}
\endinstallfonts


\input finstmsc.sty


% create the dbtt-old.enc file
\installfonts
  % the `makeenc' flag is used in c90.etx
  \setint{makeenc}{1}
  \setstr{encodingname}{dbtt-oldEncoding}
  \inputetx{dbtt-old-alias}
  \etxtoenc{c90}{dbtt-old}
\endinstallfonts

\end

% end of dbtt-old.fontinst