From 4605fb980fc8826cd097978ccbd5c8ece6176b27 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Tue, 19 Jan 2010 13:02:21 +0200 Subject: Capture requested optical size and bass a long Not used yet, though. --- otfl-font-xtx.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/otfl-font-xtx.lua b/otfl-font-xtx.lua index c53712f..20a5df9 100644 --- a/otfl-font-xtx.lua +++ b/otfl-font-xtx.lua @@ -71,6 +71,8 @@ local function isstyle(s) list.style = "italic" elseif v == "bi" or v == "ib" then list.style = "bolditalic" + elseif v:find("^s=") then + list.optsize = v:split("=")[2] end end end @@ -113,6 +115,10 @@ function fonts.define.specify.colonized(specification) -- xetex mode specification.style = list.style list.style = nil end + if list.optsize then + specification.optsize = list.optsize + list.optsize = nil + end if list.name then specification.name = list.name list.name = nil -- cgit v1.2.3