summaryrefslogtreecommitdiff
path: root/fonts/utilities/mathinst/ma_ihax.mtx
blob: 15072c8e0e3f4069d5879aa85df40e46e3674ad1 (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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% This is the file ma_ihax.mtx, part of the MathInst package
%% (version 1.0, August, 1998) for math font 
%% generation.  (Author: Alan Hoenig, ajhjj@cunyvm.cuny.edu)
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\relax 

\metrics 

\needsfontinstversion{1.315} 

% \shiftglyph takes four parameters: 
% 
% #1 the name of the glyph 
% #2 the amount of extra space at the left 
% #3 the amount of extra space at the right 
% #4 the amount to move in subscripts (should be -ve) 

\setcommand\shiftglyph#1#2#3#4{ 
   \ifisglyph{#1}\then
     \resetglyph{#1} 
     	\movert{#2} 
     	\glyph{#1}{1000} 
     	\movert{#4} 
     	\resetitalic{\add{\italic{#1}}{\sub{#3}{#4}}} 
     \endresetglyph 
   \fi
} 

% \unfakable produces a missing glyph warning. 

\setcommand\unfakable#1{ 
   \setglyph{#1} 
      \glyphrule{500}{500} 
      \glyphwarning{missing glyph `#1'} 
   \endsetglyph 
} 

% Zero the depth of a glyph. 

\setcommand\zerodepth#1{
   \ifisglyph{#1}\then 
      \resetglyph{#1} 
      	 \glyph{#1}{1000} 
      	 \resetdepth{0} 
      \endresetglyph
   \fi 
} 

% Values produced by trial and error... 

\shiftglyph{C}{-50}{0}{-25} 
\shiftglyph{E}{0}{50}{0} 
\shiftglyph{F}{0}{50}{-100} 
\shiftglyph{H}{0}{25}{-25} 
\shiftglyph{I}{0}{0}{-25} 
\shiftglyph{K}{0}{0}{-25} 
\shiftglyph{J}{0}{0}{-25} 
\shiftglyph{N}{0}{0}{-25} 
\shiftglyph{P}{0}{0}{-100} 
\shiftglyph{T}{0}{50}{-75} 
\shiftglyph{U}{-50}{50}{-25} 
\shiftglyph{V}{-50}{50}{-50} 
\shiftglyph{W}{-50}{50}{-50} 
\shiftglyph{X}{0}{50}{-25} 
\shiftglyph{Y}{-50}{50}{-50} 
\shiftglyph{b}{0}{-25}{0} 
\shiftglyph{d}{0}{25}{0} 
\shiftglyph{f}{\scale{\depth{f}}{750}}{0}{25} 
\shiftglyph{g}{0}{-50}{0} 
\shiftglyph{j}{150}{25}{0} 
\shiftglyph{l}{0}{50}{0} 
\shiftglyph{o}{0}{-50}{0} 
\shiftglyph{p}{75}{-25}{0} 
\shiftglyph{t}{-25}{50}{0} 
\shiftglyph{Upsilon}{0}{0}{-50} 
\shiftglyph{Upsilon}{0}{0}{-100} 
\shiftglyph{weierstrass}{-100}{-200}{-150} 

\unfakable{rho1} 

\ifisglyph{omega1}\then
    \setglyph{pi1} 
       \glyph{omega1}{1000} 
    \endsetglyph
\fi 

\ifisglyph{epsilon}\then
    \setglyph{epsilon1} 
       \glyph{epsilon}{1000} 
    \endsetglyph 
\fi

% \resetglyph{vector} 
%    \movert{-100} 
%    \glyph{vector}{1000} 
%    \movert{100} 
% \endresetglyph 

% Accents have to have zero depth. 

\zerodepth{acute} 
\zerodepth{grave} 
\zerodepth{caron} 
\zerodepth{breve} 
\zerodepth{macron} 
\zerodepth{ring} 
\zerodepth{circumflex} 
\zerodepth{dotaccent} 
\zerodepth{tilde} 
\zerodepth{dieresis} 

\ifisglyph{tie}\then
  \resetglyph{tie}
    \push
      \movert{\div{\width{tie}}{2}}
      \glyph{tie}{1000}
    \pop
    \samesize{tie}
  \endresetglyph
\fi
\ifisglyph{vector}\then
  \resetglyph{vector}
    \moveup{1}
    \glyph{vector}{1000}
    \moveup{-1}
  \endresetglyph
\fi

\endmetrics