[latex3-commits] [l3svn] 01/05: Drop 'extras' in hacked-up font loader
noreply at latex-project.org
noreply at latex-project.org
Sun Feb 7 23:55:34 CET 2016
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
commit 851696d8aa15aa8a4ffbb62c51744bc096ede55f
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sun Feb 7 14:12:47 2016 +0000
Drop 'extras' in hacked-up font loader
This should let us use XeTeX's loader 'properly' and for the moment
to ignore the same in LuaTeX.
---
l3kernel/l3luatex.dtx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/l3kernel/l3luatex.dtx b/l3kernel/l3luatex.dtx
index 6b16184..a2f8fbe 100644
--- a/l3kernel/l3luatex.dtx
+++ b/l3kernel/l3luatex.dtx
@@ -350,8 +350,8 @@ local fontloader = require("fontloader.lua")
% \begin{macrocode}
callback.register("define_font",
function (name, size, id)
- if string.match(name, "^%[") and string.match(name, "%]$") then
- name = string.sub(name, 2, -2)
+ if string.match(name, "^%[") then
+ name = string.match(name, "^%[([^%]]*)%]")
end
return select(2, fontloader.define_font(name, size))
end
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list