diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-04-16 00:08:11 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2018-04-16 00:08:11 +0200 |
commit | d5d5a39dc16881d098a99b74cba9020d96be4e11 (patch) | |
tree | 3d32c01797d034acc0107f6abd9c2d66af0b5ba6 /tex/context/base/mkiv/font-imp-effects.lua | |
parent | 25fcad7435f56cdce2658336909f4da6a65589c0 (diff) | |
download | context-d5d5a39dc16881d098a99b74cba9020d96be4e11.tar.gz |
2018-04-15 23:21:00
Diffstat (limited to 'tex/context/base/mkiv/font-imp-effects.lua')
-rw-r--r-- | tex/context/base/mkiv/font-imp-effects.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/font-imp-effects.lua b/tex/context/base/mkiv/font-imp-effects.lua index a5e04500c..cb7cf10d3 100644 --- a/tex/context/base/mkiv/font-imp-effects.lua +++ b/tex/context/base/mkiv/font-imp-effects.lua @@ -267,6 +267,12 @@ local function setmathcharacters(tfmdata,characters,mathparameters,dx,dy,squeeze end end +-- local show_effect = { "lua", function(f,c) +-- report_effect("font id %i, char %C",f,c) +-- end } +-- +-- local show_effect = { "lua", "print('!')" } + local function manipulateeffect(tfmdata) local effect = tfmdata.properties.effect if effect then @@ -293,6 +299,7 @@ local function manipulateeffect(tfmdata) local oldwidth = character.width local oldheight = character.height local olddepth = character.depth + if oldwidth and oldwidth > 0 then character.width = oldwidth + wdelta local commands = character.commands @@ -300,11 +307,13 @@ local function manipulateeffect(tfmdata) if vshift then if commands then prependcommands ( commands, +-- show_effect, hshift, vshift ) else character.commands = { +-- show_effect, hshift, vshift, charcommand[unicode] @@ -313,10 +322,12 @@ local function manipulateeffect(tfmdata) else if commands then prependcommands ( commands, +-- show_effect, hshift ) else character.commands = { +-- show_effect, hshift, charcommand[unicode] } |