diff options
Diffstat (limited to 'tex/context/base/mkxl/math-act.lmt')
-rw-r--r-- | tex/context/base/mkxl/math-act.lmt | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tex/context/base/mkxl/math-act.lmt b/tex/context/base/mkxl/math-act.lmt index 3a7324586..faa0d2ae5 100644 --- a/tex/context/base/mkxl/math-act.lmt +++ b/tex/context/base/mkxl/math-act.lmt @@ -3452,8 +3452,18 @@ do } local chars = fontchars[id] local dropin = fontdata[id] - local index = #fonts + 1 - fonts[index] = { id = id, size = size } + local index = false + for i=1,#fonts do + local f = fonts[i] + if f.id == id and f.size == size then + index = i + break + end + end + if not index then + index = #fonts + 1 + fonts[index] = { id = id, size = size } + end -- copy characters for s=firstsource,lastsource do local t = s + offset |