summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-ttf.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2020-11-15 21:03:33 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2020-11-15 21:03:33 +0100
commita9eb7ca71c27fdd59cf99273adf74b17d72063b2 (patch)
treebb5c72ee61c52da8046ed81bfe4b0906cd412030 /tex/context/base/mkiv/font-ttf.lua
parent87bd04a46f60bb925f6c98b7977f30441f5e8944 (diff)
downloadcontext-a9eb7ca71c27fdd59cf99273adf74b17d72063b2.tar.gz
2020-11-15 20:43:00
Diffstat (limited to 'tex/context/base/mkiv/font-ttf.lua')
-rw-r--r--tex/context/base/mkiv/font-ttf.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/font-ttf.lua b/tex/context/base/mkiv/font-ttf.lua
index 865f8e6e3..a2732aa5f 100644
--- a/tex/context/base/mkiv/font-ttf.lua
+++ b/tex/context/base/mkiv/font-ttf.lua
@@ -163,8 +163,7 @@ local function mergecomposites(glyphs,shapes)
return contours, points
end
--- for index=1,#glyphs do
- for index=0,#glyphs-1 do
+ for index=0,#glyphs do
local shape = shapes[index]
if shape then
local components = shape.components
@@ -659,7 +658,7 @@ local function repackpoints(glyphs,shapes)
local result = { } -- reused
local xpoints = { } -- reused
local ypoints = { } -- reused
- for index=0,#glyphs-1 do
+ for index=0,#glyphs do
local shape = shapes[index]
if shape then
local r = 0