diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2015-11-21 19:00:02 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2015-11-21 19:00:02 +0100 |
commit | 6c3d70e21b100c6c7ffa11e1c6d9260b32ccc781 (patch) | |
tree | 3d4cf2074ffa6451b2c707532f9a0d03533826fa /src/fontloader/misc/fontloader-font-con.lua | |
parent | 4256d04d076d788428d4a8eb9a316da9d52a1622 (diff) | |
parent | 0ee06552f8a2c0e29e67754fe0571549ad6855aa (diff) | |
download | luaotfload-6c3d70e21b100c6c7ffa11e1c6d9260b32ccc781.tar.gz |
Merge pull request #293 from phi-gamma/master
update fontloader
Diffstat (limited to 'src/fontloader/misc/fontloader-font-con.lua')
-rw-r--r-- | src/fontloader/misc/fontloader-font-con.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fontloader/misc/fontloader-font-con.lua b/src/fontloader/misc/fontloader-font-con.lua index 383a403..55d7793 100644 --- a/src/fontloader/misc/fontloader-font-con.lua +++ b/src/fontloader/misc/fontloader-font-con.lua @@ -170,8 +170,8 @@ constructors.setfactor() function constructors.scaled(scaledpoints, designsize) -- handles designsize in sp as well if scaledpoints < 0 then + local factor = constructors.factor if designsize then - local factor = constructors.factor if designsize > factor then -- or just 1000 / when? mp? return (- scaledpoints/1000) * designsize -- sp's else @@ -700,6 +700,7 @@ function constructors.scale(tfmdata,specification) end -- if hasmath then + -- -- todo, just operate on descriptions.math local vn = character.next if vn then @@ -736,6 +737,11 @@ function constructors.scale(tfmdata,specification) chr.horiz_variants = t end end + -- todo also check mathitalics (or that one can go away) + end + local vi = character.vert_italic + if vi and vi ~= 0 then + chr.vert_italic = vi*hdelta end local va = character.accent if va then |