summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-otj.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2017-08-02 23:42:35 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2017-08-02 23:42:35 +0200
commitfe1ea06fcb9c42c23beaf4211ae3b0a2de60895e (patch)
treeb14be0ced75829638c0c3be2ca1eb9d53defd35a /tex/context/base/mkiv/font-otj.lua
parentee627840c85edc7b073d0582632dcc4da82a1e83 (diff)
downloadcontext-fe1ea06fcb9c42c23beaf4211ae3b0a2de60895e.tar.gz
2017-08-02 23:05:00
Diffstat (limited to 'tex/context/base/mkiv/font-otj.lua')
-rw-r--r--tex/context/base/mkiv/font-otj.lua83
1 files changed, 22 insertions, 61 deletions
diff --git a/tex/context/base/mkiv/font-otj.lua b/tex/context/base/mkiv/font-otj.lua
index 8d95e115b..657f1a2a6 100644
--- a/tex/context/base/mkiv/font-otj.lua
+++ b/tex/context/base/mkiv/font-otj.lua
@@ -356,41 +356,21 @@ function injections.setkern(current,factor,rlmode,x,injection)
if not injection then
injection = "injections"
end
- if rlmode and rlmode < 0 then
- -- was right kern but why ... we need to check this (kai)
- if p then
- local i = rawget(p,injection)
- if i then
- i.leftkern = dx + (i.leftkern or 0)
- else
- p[injection] = {
- leftkern = dx,
- }
- end
+ if p then
+ local i = rawget(p,injection)
+ if i then
+ i.leftkern = dx + (i.leftkern or 0)
else
- properties[current] = {
- [injection] = {
- leftkern = dx,
- },
+ p[injection] = {
+ leftkern = dx,
}
end
else
- if p then
- local i = rawget(p,injection)
- if i then
- i.leftkern = dx + (i.leftkern or 0)
- else
- p[injection] = {
- leftkern = dx,
- }
- end
- else
- properties[current] = {
- [injection] = {
- leftkern = dx,
- },
- }
- end
+ properties[current] = {
+ [injection] = {
+ leftkern = dx,
+ },
+ }
end
return dx, nofregisteredkerns
else
@@ -410,40 +390,21 @@ function injections.setmove(current,factor,rlmode,x,injection)
if not injection then
injection = "injections"
end
- if rlmode and rlmode < 0 then
- if p then
- local i = rawget(p,injection)
- if i then
- i.leftkern = dx + (i.leftkern or 0)
- else
- p[injection] = {
- leftkern = dx,
- }
- end
+ if p then
+ local i = rawget(p,injection)
+ if i then
+ i.leftkern = dx + (i.leftkern or 0)
else
- properties[current] = {
- [injection] = {
- leftkern = dx,
- },
+ p[injection] = {
+ leftkern = dx,
}
end
else
- if p then
- local i = rawget(p,injection)
- if i then
- i.leftkern = dx + (i.leftkern or 0)
- else
- p[injection] = {
- leftkern = dx,
- }
- end
- else
- properties[current] = {
- [injection] = {
- leftkern = dx,
- },
- }
- end
+ properties[current] = {
+ [injection] = {
+ leftkern = dx,
+ },
+ }
end
return dx, nofregisteredkerns
else