diff options
author | Karl Berry <karl@freefriends.org> | 2019-02-25 22:22:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-02-25 22:22:50 +0000 |
commit | ab8a74099e59b1e4a16672820198419ae0b07ce0 (patch) | |
tree | 8d61990071fa5f5c8c375dc4b2b308ca4d0734c4 /Master/texmf-dist/tex/luatex/luaotfload/fontloader-util-str.lua | |
parent | c0f152092e12b8eb497c5d9e206a8fc1ad9ed5c2 (diff) |
luaotfload (25feb19)
git-svn-id: svn://tug.org/texlive/trunk@50131 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luaotfload/fontloader-util-str.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luaotfload/fontloader-util-str.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/luatex/luaotfload/fontloader-util-str.lua b/Master/texmf-dist/tex/luatex/luaotfload/fontloader-util-str.lua index 410a4a547e4..713c294ebe7 100644 --- a/Master/texmf-dist/tex/luatex/luaotfload/fontloader-util-str.lua +++ b/Master/texmf-dist/tex/luatex/luaotfload/fontloader-util-str.lua @@ -612,6 +612,8 @@ local environment = { formattedfloat = number.formattedfloat, stripzero = lpeg.patterns.stripzero, stripzeros = lpeg.patterns.stripzeros, + + FORMAT = string.f9, } -- -- -- @@ -730,6 +732,17 @@ local format_F = function(f) -- beware, no cast to number end end +-- if string.f9 then +-- format_F = function(f) -- beware, no cast to number +-- n = n + 1 +-- if not f or f == "" then +-- return format("(((a%s > -0.0000000005 and a%s < 0.0000000005) and '0') or FORMAT(a%s))",n,n,n,n,n) +-- else +-- return format("((a%s %% 1 == 0) and format('%%i',a%s) or FORMAT(a%s,'%%%sf'))",n,n,n,f) +-- end +-- end +-- end + local format_k = function(b,a) -- slow n = n + 1 return format("formattedfloat(a%s,%i,%i)",n,b or 0, a or 0) |