diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-01-20 00:05:09 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-01-20 00:05:09 +0200 |
commit | d7ac7e182bf0c14ec1341d2dd392f0258a430d68 (patch) | |
tree | 04a11a463f698c971a51d42db4a62a0ca15de5f6 /otfl-font-def.lua | |
parent | 9fcdc6b780ce57bce6222fac7c7f723317740255 (diff) | |
download | luaotfload-d7ac7e182bf0c14ec1341d2dd392f0258a430d68.tar.gz |
Pass 'specification' directly to |fonts.names.resolve()|
We will need more fields from the specification in the future, simplify
function calling.
Diffstat (limited to 'otfl-font-def.lua')
-rw-r--r-- | otfl-font-def.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/otfl-font-def.lua b/otfl-font-def.lua index 99cc5e1..47b1755 100644 --- a/otfl-font-def.lua +++ b/otfl-font-def.lua @@ -241,7 +241,7 @@ end function define.resolvers.name(specification) local resolve = fonts.names.resolve if resolve then - specification.resolved, specification.sub = fonts.names.resolve(specification.name,specification.sub,specification.style) + specification.resolved, specification.sub = fonts.names.resolve(specification) if specification.resolved then specification.forced = file.extname(specification.resolved) specification.name = file.removesuffix(specification.resolved) @@ -254,7 +254,7 @@ end function define.resolvers.spec(specification) local resolvespec = fonts.names.resolvespec if resolvespec then - specification.resolved, specification.sub = fonts.names.resolvespec(specification.name,specification.sub,specification.style) + specification.resolved, specification.sub = fonts.names.resolvespec(specification) if specification.resolved then specification.forced = file.extname(specification.resolved) specification.name = file.removesuffix(specification.resolved) |