Fix font sharing
This commit is contained in:
parent
b87691c42d
commit
377d147927
@ -31,8 +31,12 @@ local fontmap = setmetatable({}, {
|
|||||||
__index = function(t, fid)
|
__index = function(t, fid)
|
||||||
local key = build_sharekey(assert(fonts[fid]))
|
local key = build_sharekey(assert(fonts[fid]))
|
||||||
local mapped = keymap[key]
|
local mapped = keymap[key]
|
||||||
local share_parent = mapped and t[mapped] or fid
|
local share_parent
|
||||||
t[fid] = share_parent
|
if mapped then
|
||||||
|
share_parent = t[mapped]
|
||||||
|
else
|
||||||
|
share_parent, keymap[key], t[fid] = fid, fid, fid
|
||||||
|
end
|
||||||
return share_parent
|
return share_parent
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user