From 762cbf30d44d19b780275eeb54dc15fd2d1f7fee Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Tue, 19 Jan 2010 13:19:49 +0200 Subject: Allow arbitrary font styles If the font option isn't a known option, we assume it is a font style and pass it as is, this allows for definitions like: \font\dejavuextralight={DejaVu Sans/Extralight:+liga} at 10pt --- otfl-font-xtx.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'otfl-font-xtx.lua') diff --git a/otfl-font-xtx.lua b/otfl-font-xtx.lua index b285d0b..502163c 100644 --- a/otfl-font-xtx.lua +++ b/otfl-font-xtx.lua @@ -74,6 +74,8 @@ local function isstyle(s) elseif v:find("^s=") then list.optsize = v:split("=")[2] elseif v == "aat" or v == "icu" then + else + list.style = v:gsub("[^%a%d]", "") end end end -- cgit v1.2.3