summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-ots.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-01-03 20:16:56 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-01-03 20:16:56 +0100
commitb04dda4c73d0f71e78f1fd4979ef04c7e9a669ed (patch)
tree4a53c427af3bca27aa5dc47f4c06ee71fb2e8508 /tex/context/base/mkiv/font-ots.lua
parentb28de538b3b4dc7acda5eb9eefc7a7d68c8fb49f (diff)
downloadcontext-b04dda4c73d0f71e78f1fd4979ef04c7e9a669ed.tar.gz
2019-01-03 19:35:00
Diffstat (limited to 'tex/context/base/mkiv/font-ots.lua')
-rw-r--r--tex/context/base/mkiv/font-ots.lua23
1 files changed, 1 insertions, 22 deletions
diff --git a/tex/context/base/mkiv/font-ots.lua b/tex/context/base/mkiv/font-ots.lua
index 5c64ab8e5..ae54c390e 100644
--- a/tex/context/base/mkiv/font-ots.lua
+++ b/tex/context/base/mkiv/font-ots.lua
@@ -203,6 +203,7 @@ local getdir = nuts.getdir
local getwidth = nuts.getwidth
local ischar = nuts.is_char
+local isglyph = nuts.isglyph
local usesfont = nuts.uses_font
local insert_node_after = nuts.insert_after
@@ -457,28 +458,6 @@ local copy_only_glyphs = nuts.copy_only_glyphs
local set_components = setcomponents
local take_components = getcomponents
-local isglyph = nuts.isglyph
-
--- local function count_components(start,marks)
--- print("!")
--- if getid(start) ~= glyph_code then
--- return 0
--- elseif getsubtype(start) == ligatureglyph_code then
--- local i = 0
--- local components = getcomponents(start)
--- while components do
--- i = i + count_components(components,marks)
--- components = getnext(components)
--- end
--- return i
--- elseif not marks[getchar(start)] then
--- print("YES")
--- return 1
--- else
--- return 0
--- end
--- end
-
local function count_components(start,marks)
local char = isglyph(start)
if char then