summaryrefslogtreecommitdiff
path: root/src/fontloader/misc/fontloader-fonts-demo-vf-1.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-11-21 19:00:02 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2015-11-21 19:00:02 +0100
commit6c3d70e21b100c6c7ffa11e1c6d9260b32ccc781 (patch)
tree3d4cf2074ffa6451b2c707532f9a0d03533826fa /src/fontloader/misc/fontloader-fonts-demo-vf-1.lua
parent4256d04d076d788428d4a8eb9a316da9d52a1622 (diff)
parent0ee06552f8a2c0e29e67754fe0571549ad6855aa (diff)
downloadluaotfload-6c3d70e21b100c6c7ffa11e1c6d9260b32ccc781.tar.gz
Merge pull request #293 from phi-gamma/master
update fontloader
Diffstat (limited to 'src/fontloader/misc/fontloader-fonts-demo-vf-1.lua')
-rw-r--r--src/fontloader/misc/fontloader-fonts-demo-vf-1.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fontloader/misc/fontloader-fonts-demo-vf-1.lua b/src/fontloader/misc/fontloader-fonts-demo-vf-1.lua
index 3878ae6..13acd16 100644
--- a/src/fontloader/misc/fontloader-fonts-demo-vf-1.lua
+++ b/src/fontloader/misc/fontloader-fonts-demo-vf-1.lua
@@ -17,6 +17,7 @@ return function(specification)
{ "special", "pdf:1 0 0 rg" },
{ "special", "pdf:0 1 0 rg" },
{ "special", "pdf:0 0 1 rg" },
+ { "special", "pdf:0 0 1 rg" },
}
local chars = {
identifiers[id1].characters,
@@ -26,7 +27,12 @@ return function(specification)
for u, v in next, f1.characters do
local n = math.floor(math.random(1,3)+0.5)
local c = chars[n][u] or v
- v.commands = { color[n], { 'slot', n, u }, color[0] }
+ v.commands = {
+ color[n],
+ { 'slot', n, u },
+ color[0],
+ { 'nop' }
+ }
v.kerns = nil
v.width = c.width
v.height = c.height