From 5aea89f6d96d6014e559b960096371c5b7e06968 Mon Sep 17 00:00:00 2001
From: Khaled Hosny <khaledhosny@eglug.org>
Date: Fri, 26 Nov 2010 18:37:31 +0200
Subject: Remove `luaotfload.add_patch_callback()`

Per Philip's suggestion, `luatexbase.add_to_callback()` is to be used
directly instead.
---
 tests/font_patch.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'tests/font_patch.tex')

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
-- 
cgit v1.2.3

