diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-11-26 18:37:31 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-11-26 18:37:31 +0200 |
commit | 5aea89f6d96d6014e559b960096371c5b7e06968 (patch) | |
tree | f38a69909b684328124122af96189017cf89682a | |
parent | b3932a4a4ae41aa0fd19ab442513d884c78a0548 (diff) | |
download | luaotfload-5aea89f6d96d6014e559b960096371c5b7e06968.tar.gz |
Remove `luaotfload.add_patch_callback()`
Per Philip's suggestion, `luatexbase.add_to_callback()` is to be used
directly instead.
-rw-r--r-- | luaotfload.dtx | 8 | ||||
-rw-r--r-- | tests/font_patch.tex | 4 |
2 files changed, 2 insertions, 10 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx index 2192e12..eb53461 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -707,14 +707,6 @@ for _,v in next, gsubs do end % \end{macrocode} % -% Function to register font patching callbacks. -% -% \begin{macrocode} -function luaotfload.add_patch_callback(...) - luatexbase.add_to_callback("luaotfload.patch_font", ...) -end -% \end{macrocode} -% % Finally we register the callbacks % % \begin{macrocode} diff --git a/tests/font_patch.tex b/tests/font_patch.tex index a8820b1..e096551 100644 --- a/tests/font_patch.tex +++ b/tests/font_patch.tex @@ -1,6 +1,6 @@ \input{luaotfload.sty} \directlua { - local function patch_font(fontdata) + local function patch(fontdata) local mc = fontdata.MathConstants local em = fontdata.units local sz = fontdata.size @@ -8,7 +8,7 @@ mc.DisplayOperatorMinHeight = 2800 / em * sz end end - luaotfload.add_patch_callback(patch_font, "modernmath.patch_font") + luatexbase.add_to_callback("luaotfload.patch_font", patch, "cambria.domh") } \font\4={name:Cambria Math:mode=base;script=math} at 10pt |