summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/fonts/source/vntex/vnr/vntextit.mf
blob: 391925d8d3172a362045c8c61f529cf302a3a035 (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
% Copyright 2003-2005 Han The Thanh <hanthethanh@gmx.net>.
% This file is part of vntex.  License: LPPL, version 1.3 or newer,
% according to http://www.latex-project.org/lppl.txt

% driver for italic fonts (based on extextit.mf)

version_check(1,0);  % |version_check| was introduced in dc1.3

input exaccess; % accessories for polish special letters
input expseudo; % pseudoparameters 

mode_setup;
font_setup;
pseudo_setup;

if known testing:
    set_lowercase;
    input vnaccent;
    input_li_fam;
    set_uppercase;
    input vnaccent;
    input_ur_fam;
    let next = endinput;
else:
    let next = relax;
fi % known testing
next;

if known gen_t5_supp:
    input exbraces; % ^ ~ cwm  ( ) < | > [ ] \ { } _ - (177) space (040)
    input expunct;  %  < << > >>  ! ` ' *  + , . / = ; : (spanish !)
    input exaccent; %
    input exsign;   %  zero for mille, " # $ % @ pound sign
    set_lowercase;
    input vnaccent;
    input vndothook;% dotbelow and hookabove
    input vnminus;  % minus iff monospace:
    input vnlacc;   % lowercase accents
    input vnloi;    % ohorn
    input vnlui;    % uhorn
    input vnldi;    % dcroat
    set_uppercase;
    input vnaccent;
    input vnuacc;   % lowercase accents
    input vnuor;    % Ohorn
    input vnuur;    % Uhorn
    input vnudr;    % Dcroat
    let next = endinput;
else:
    let next = relax;
fi % known gen_t5_supp
next;

input exbraces; % ^ ~ cwm  ( ) < | > [ ] \ { } _ - (177) space (040)
input expunct;  %  < << > >>  ! ` ' *  + , . / = ; : (spanish !)
input exaccent; %
input exsign;   % zero for mille, " # $ % @ pound sign
input exilig;   % dotless i,j; letter ligatures  ff fi fl ffi ffl
input exitalp;  %  $ ? # &
input exrulett; % upper case (majuscules)
input exillett; % lower case (minuscules)
input exidigit; % digits

set_lowercase;  % set `case_' and `vncase' for lowercase letters
input vnaccent; % define the accents for lowercase letters
input vnlai;    % modified/accented "a"
input vnlei;    % modified/accented "e"
input vnlii;    % accented "i"
input vnloi;    % modified/accented "o"
input vnlui;    % modified/accented "u"
input vnlyi;    % accented "y"
input vnldi;    % d-bar

input vndothook;% dotbelow and hookabove
input vnminus;  % minus iff monospace:

set_uppercase;  % set `case_' and `vncase' for uppercase letters
input vnaccent; % define the accents for uppercase letters
input vnuar;    % modified/accented "A"
input vnuer;    % modified/accented "E"
input vnuir;    % accented "I"
input vnuor;    % modified/accented "O"
input vnuur;    % modified/accented "U"
input vnuyr;    % accented "Y"
input vnudr;    % D-bar

%
% Fontparameter
%
font_coding_scheme := "Vietnamese TeX Font Encoding";
boundarychar := oct"027";
font_slant slant; 
font_x_height x_height#;
font_cap_height cap_height#;
font_asc_height asc_height#;
font_acc_cap_height (cap_height#+acc_height#);
font_desc_depth desc_depth#;
font_max_height (max(asc_height#,body_height#,
  cap_height#+acc_height#));
font_max_depth (max(desc_depth#,paren_depth#,the_ogonek_depth#));
% font_digit_width % set inside the digits file
% font_cap_stem    % set after the programme of the capital I
font_baselineskip max(1.2*designsize,body_height#+paren_depth#);

if monospace:
    font_normal_space 9u#; % no stretching or shrinking
    font_quad 18u#;
    font_extra_space 9u#;
    letter_fit#:=letter_fit:=0;
    input vnmligtb; % do the ligature programmes for monospaced fonts
else:
    font_normal_space 6u#+2letter_fit#;
    font_normal_stretch 3u#;
    font_normal_shrink 2u#;
    font_quad 18u#+4letter_fit#;
    font_extra_space 2u#;
    input vniligtb; % do the ligature programmes for proportionally spaced fonts
fi

endinput;