View Issue Details

IDProjectCategoryView StatusLast Update
0000870luatexluatex bugpublic2013-12-20 10:01
Reportermaaca Assigned ToHans Hagen  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Summary0000870: Hyphenation is breaking kerning in OpenType fonts
DescriptionLuaTeX is ignoring kerning pairs in OpenType fonts when the pair is in the place of "hyphenation mark".

It looks, LuaTeX is using "\discretionary replacing kern" with non-OpenType font, but only "\discretionary" with OpenType. It causes, that kerning is ignored for the pair of letters.

The issue is not such obvious in "normal" text, but it affects almost all the texts processed by LuaTeX (and ConTeXt MkIV).
Steps To ReproduceSimple ConTeXt code:
\hyphenation{vl-ta-va}
\starttext
AVA
VLTAVA % "A V" kern is ignored
\stoptext


LuaTeX code with some debugging marks:
\ifx\directlua\undefined \else \input luafonts \fi % otfload code
\font\f=[lmroman10-regular] \f

\hyphenation{vl-ta-va}

\setbox0=\hbox{VLTAVA}
\message{:::::: \the\wd0}
\tracingonline=1 \showboxbreadth=25 \nonstopmode \showbox0

AVA VLTAVA.

\end
TagsNo tags attached.

Activities

Hans Hagen

2013-12-12 23:23

manager   ~0001146

It's not a luatex (engine) bug but a lua font code bug. I made a quick fix (eventually I want to solve this differently but that will happen in an experimental context setup sometime next year). I'll test this fix for a while for side effects.

Hans Hagen

2013-12-12 23:24

manager   ~0001147

in upcoming context beta

Hans Hagen

2013-12-20 10:01

manager   ~0001182

closed in 0.78

Issue History

Date Modified Username Field Change
2013-12-12 21:18 maaca New Issue
2013-12-12 23:23 Hans Hagen Note Added: 0001146
2013-12-12 23:23 Hans Hagen Assigned To => Hans Hagen
2013-12-12 23:23 Hans Hagen Status new => assigned
2013-12-12 23:24 Hans Hagen Note Added: 0001147
2013-12-12 23:24 Hans Hagen Status assigned => resolved
2013-12-12 23:24 Hans Hagen Resolution open => fixed
2013-12-20 10:01 Hans Hagen Note Added: 0001182
2013-12-20 10:01 Hans Hagen Status resolved => closed