summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-01-19 13:02:21 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-01-19 13:06:22 +0200
commit4605fb980fc8826cd097978ccbd5c8ece6176b27 (patch)
tree1ace9ec5c6e00e2a7463b213a4c6ad95eed7385c
parent7721d4a3a7bd835bff64ee4bbd186ca9b36af387 (diff)
downloadluaotfload-4605fb980fc8826cd097978ccbd5c8ece6176b27.tar.gz
Capture requested optical size and bass a long
Not used yet, though.
-rw-r--r--otfl-font-xtx.lua6
1 files changed, 6 insertions, 0 deletions
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