summaryrefslogtreecommitdiff
path: root/fonts/garamondx/src/adjust-gm-r.mtx
blob: 572422245678ac147eecb7a4682a54e4faeb5536 (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
\relax 

\metrics 

\needsfontinstversion{1.933} 

% \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 

\setcommand\shifttxtglyph#1#2#3{ 
   \ifisglyph{#1}\then
     \resetglyph{#1} 
     	\movert{#2} 
     	\glyph{#1}{1000} 
     	\movert{#3} 
     	\resetitalic{0} %\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 
} 

\resetint{interword}{258}
\resetint{stretchword}{129}
\resetint{shrinkword}{86}
\resetint{xheight}{451}

\shifttxtglyph{parenleft}{-25}{85}
\shifttxtglyph{parenright}{40}{20}
\shifttxtglyph{bracketleft}{45}{40}
\shifttxtglyph{bracketright}{40}{45}
\setkern{parenleft}{J}{50}
\setkern{bracketleft}{J}{50}
\setkern{braceleft}{J}{40}
\setkern{parenleft}{C}{-40}
\setkern{C}{parenright}{10}
\setkern{parenleft}{G}{-40}
\setkern{parenleft}{O}{-20}
\setkern{O}{parenright}{-20}
\setkern{parenleft}{Q}{-20}
\setkern{Q}{parenright}{-20}
\endmetrics