summaryrefslogtreecommitdiff
path: root/tex/context/base/font-ext.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/font-ext.lua')
-rw-r--r--tex/context/base/font-ext.lua13
1 files changed, 10 insertions, 3 deletions
diff --git a/tex/context/base/font-ext.lua b/tex/context/base/font-ext.lua
index 4dae48015..df8cbe160 100644
--- a/tex/context/base/font-ext.lua
+++ b/tex/context/base/font-ext.lua
@@ -29,6 +29,7 @@ of neutral.</p>
local handlers = fonts.handlers
local hashes = fonts.hashes
+local otf = handlers.otf
local registerotffeature = handlers.otf.features.register
local registerafmfeature = handlers.afm.features.register
@@ -386,9 +387,15 @@ local function map_opbd_onto_protrusion(tfmdata,value,opbd)
end
end
end
- tfmdata.parameters.protrusion {
- auto = true
- }
+ local parameters = tfmdata.parameters
+ local protrusion = tfmdata.protrusion
+ if not protrusion then
+ parameters.protrusion = {
+ auto = true
+ }
+ else
+ protrusion.auto = true
+ end
end
-- The opbd test is just there because it was discussed on the