diff options
Diffstat (limited to 'Master/texmf-dist/source/fonts/arev/fixkernaccents.tex')
-rw-r--r-- | Master/texmf-dist/source/fonts/arev/fixkernaccents.tex | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/fonts/arev/fixkernaccents.tex b/Master/texmf-dist/source/fonts/arev/fixkernaccents.tex new file mode 100644 index 00000000000..787cc799b96 --- /dev/null +++ b/Master/texmf-dist/source/fonts/arev/fixkernaccents.tex @@ -0,0 +1,41 @@ +% fixkernaccents.tex + +% requires \thenewskewchar to be set to the new skewchar _before_ renaming + +\setcommand\fixaccentkern#1#2#3#4% +% parameters: character, kern, skewchar bbleft, skewchar bbright +{ + \resetint{temp} + { + \add + { + #2 %\kerning{#1}{\skewchar} + } + { + \half + { + \add + { + \sub + { + \width{#1} + } + { + \italic{#1} + } + } + { + \add + { + #3 %\bbleft{\skewchar} + } + { + #4 %\bbright{\skewchar} + } + } + } + } + } + \setkern{#1}{\thenewskewchar}{\strint{temp}} + % Thanks to Lars Hellstrom for pointing out that the third parameter can't be just the \add macro +} |