• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: Commit

ソースコードの管理場所


Commit MetaInfo

Revisiona1560c05a94437395193115cf2ecd52c7a31be8b (tree)
Time2018-06-13 19:49:10
AuthorHironori Kitagawa <h_kitagawa2001@yaho...>
CommiterHironori Kitagawa

Log Message

use myround instead of tex.round

Change Summary

Incremental Difference

--- a/src/ltj-jfont.lua
+++ b/src/ltj-jfont.lua
@@ -179,6 +179,8 @@ end
179179
180180 local update_jfm_cache
181181 do
182+ local floor = math.floor
183+ local function myround(a) return floor(a+0.5) end
182184 local function mult_table(old,scale) -- modified from table.fastcopy
183185 if old then
184186 local new = { }
@@ -186,7 +188,7 @@ do
186188 if type(v) == "table" then
187189 new[k] = mult_table(v,scale)
188190 elseif type(v) == "number" then
189- new[k] = round(v*scale)
191+ new[k] = myround(v*scale)
190192 else
191193 new[k] = v
192194 end
Show on old repository browser