diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /fonts/garamondx/src/adjust-gm-r.mtx |
Initial commit
Diffstat (limited to 'fonts/garamondx/src/adjust-gm-r.mtx')
-rw-r--r-- | fonts/garamondx/src/adjust-gm-r.mtx | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/fonts/garamondx/src/adjust-gm-r.mtx b/fonts/garamondx/src/adjust-gm-r.mtx new file mode 100644 index 0000000000..5724222456 --- /dev/null +++ b/fonts/garamondx/src/adjust-gm-r.mtx @@ -0,0 +1,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
\ No newline at end of file |