summaryrefslogtreecommitdiff
path: root/texmf-dist/source/fonts/garamondx/adjust-gm-ri.mtx
blob: 6a9e6b303d33efe9b51b4f38c93711df1d993d65 (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
\relax 

\metrics 

\needsfontinstversion{1.933} 

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


\shifttxtglyph{parenleft}{-25}{55}
\shifttxtglyph{parenright}{20}{10}
\shifttxtglyph{bracketleft}{25}{40}
\shifttxtglyph{bracketright}{40}{25}
\setkern{bracketleft}{J}{30}
\setkern{braceleft}{J}{30}
\endmetrics