Skip to content

Commit

Permalink
style(fonts): Make Lua arrays easier to read
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Feb 24, 2021
1 parent f000fca commit 6bd45a7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion core/font.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,16 @@ SILE.settings.declare({ parameter = "document.language", type = "string", defaul
SILE.fontCache = {}

local _key = function (options)
return table.concat({ options.family;("%g"):format(options.size);("%d"):format(options.weight);options.style;options.variant;options.features;options.direction;options.filename }, ";")
return table.concat({
options.family,
("%g"):format(options.size),
("%d"):format(options.weight),
options.style,
options.variant,
options.features,
options.direction,
options.filename,
}, ";")
end

SILE.font = {
Expand Down

0 comments on commit 6bd45a7

Please sign in to comment.