summaryrefslogtreecommitdiff
path: root/otfl-font-def.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-01-15 08:18:40 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-01-15 09:24:38 +0200
commit4962a4a9bc747e2ba62331c652a1802922509365 (patch)
tree6b2e96eb4e8fc8f180fa317905913dcc48836b05 /otfl-font-def.lua
parentd219fcfa58d00d321aaf8966c7d62a38d0cb4d45 (diff)
downloadluaotfload-4962a4a9bc747e2ba62331c652a1802922509365.tar.gz
Support auto-detecting font style
We now support XeTeX's syntax, try: \input luaotfload.sty \font\termesr ={TeX Gyre Termes:+liga} at 10pt \font\termesb ={TeX Gyre Termes/B:+liga} at 10pt \font\termesi ={TeX Gyre Termes/I:+liga} at 10pt \font\termesbi={TeX Gyre Termes/BI:+liga} at 10pt \font\termesib={TeX Gyre Termes/IB:+liga} at 10pt \termesr What a nice day fi fl ffi ffl ff\par \termesb What a nice day fi fl ffi ffl ff\par \termesi What a nice day fi fl ffi ffl ff\par \termesbi What a nice day fi fl ffi ffl ff\par \termesib What a nice day fi fl ffi ffl ff\par \bye
Diffstat (limited to 'otfl-font-def.lua')
-rw-r--r--otfl-font-def.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/otfl-font-def.lua b/otfl-font-def.lua
index 02369cc..99cc5e1 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.resolved, specification.sub = fonts.names.resolve(specification.name,specification.sub,specification.style)
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.resolved, specification.sub = fonts.names.resolvespec(specification.name,specification.sub,specification.style)
if specification.resolved then
specification.forced = file.extname(specification.resolved)
specification.name = file.removesuffix(specification.resolved)