OSDN Git Service
(root)
/
luatex-ja
/
luatexja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1e63331
)
Fix ticket #34631
author
Hironori Kitagawa
<h_kitagawa2001@yahoo.co.jp>
Sun, 23 Nov 2014 02:56:45 +0000
(11:56 +0900)
committer
Hironori Kitagawa
<h_kitagawa2001@yahoo.co.jp>
Sun, 23 Nov 2014 02:56:45 +0000
(11:56 +0900)
src/ltj-setwidth.lua
patch
|
blob
|
history
diff --git
a/src/ltj-setwidth.lua
b/src/ltj-setwidth.lua
index
7d282d5
..
0a5c678
100644
(file)
--- a/
src/ltj-setwidth.lua
+++ b/
src/ltj-setwidth.lua
@@
-179,9
+179,9
@@
local function capsule_glyph_tate(p, met, class, head, dir)
local ws = node_new(id_whatsit, sid_save)
local wm = node_new(id_whatsit, sid_matrix)
setfield(wm, 'data', '0 1 -1 0')
local ws = node_new(id_whatsit, sid_save)
local wm = node_new(id_whatsit, sid_matrix)
setfield(wm, 'data', '0 1 -1 0')
- local pwnh = -
0.5*getfield(p, 'width'
)
- local k2 = node_new(id_kern); setfield(k2, 'kern',
- 0.5*getfield(p, 'width')
)
- local k3 = node_
copy(k2
)
+ local pwnh = -
round(0.5*getfield(p, 'width')
)
+ local k2 = node_new(id_kern); setfield(k2, 'kern',
pwnh
)
+ local k3 = node_
new(id_kern); setfield(k3, 'kern', -getfield(p, 'width')-pwnh
)
local wr = node_new(id_whatsit, sid_restore)
setfield(box, 'head', ws)
setfield(ws, 'next', wm); setfield(wm, 'next', k2);
local wr = node_new(id_whatsit, sid_restore)
setfield(box, 'head', ws)
setfield(ws, 'next', wm); setfield(wm, 'next', k2);