View Issue Details

IDProjectCategoryView StatusLast Update
0000487luatexluatex bugpublic2015-10-06 20:11
ReporterTaco Assigned ToTaco  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Summary0000487: negative protrusion values are handled wrong
DescriptionReported by Robert Schlicht:

luatex doesn't deal with negative protrusion values correctly -- for opentype fonts, the margin kern is too small, while for type1 fonts it's way off, and even in the wrong direction:
Steps To Reproduce
\tracingoutput1
\showboxbreadth\maxdimen
\showboxdepth\maxdimen
  % Opentype:
  \input{luaotfload.sty}
  \font\x="Latin Modern Roman" at 12pt
  % Type1:
% \font\x=cmr12
\x
\pdfprotrudechars2
\parindent=0pt
\lpcode\x`N=-500 \rpcode\x`N=-500
\lpcode\x`Z= 500 \rpcode\x`Z= 500
H\hfill H\penalty-10000 N\hfill N\par
H\hfill H\penalty-10000 Z\hfill Z\par
\bye
TagsNo tags attached.

Activities

woodbird

2011-09-17 17:56

reporter   ~0000909

Last edited: 2011-09-17 17:56

I have a problem that I think is actually caused by this issue. However, unlike the description in this issue, for OpenType fonts, it is also a way off the margin rather than too small margin kern, just the same as for type1 fonts.

I asked about this problem in tex.stackexchange.com. The detail and an example can be found in the following link.

http://tex.stackexchange.com/questions/28733/lualatex-protrusion-problem-with-minion-italic

pipping

2014-10-01 21:47

reporter   ~0001281

This bug has now been open for over three years. 17 people have upvoted the corresponding thread [1] on tex.stackexchange and 9 have upvoted its duplicate [2].

I would like to ask you to reconsider the severity of this bug, which I believe to be greater than "minor".

Its effect is that documents which load the microtype package with default settings and employ italic text currently cannot be typeset reliably through luatex.


[1] http://tex.stackexchange.com/questions/28733/lualatex-protrusion-problem-with-negative-value
[2] http://tex.stackexchange.com/questions/104447/how-can-i-fix-a-problem-where-italics-prevent-line-breaking-when-using-microtype

luigi scarso

2014-10-06 14:22

developer  

test-type1.pdf (18,134 bytes)

luigi scarso

2014-10-06 14:23

developer  

test-otf.pdf (5,014 bytes)

luigi scarso

2014-10-06 14:24

developer   ~0001284

Last edited: 2014-10-06 14:26

Commenting \input{luaotfload.sty} and using the plain format in ConTeXt
(mtxrun --script plain ) I have the test-type1.pdf and test-otf.pdf
and they look ok for me. Also ConTeXt mkiv looks ok.
$ luatex --version
This is LuaTeX, Version beta-0.79.1 (TeX Live 2015/dev)

it's the experimental branch (will replace trunk)

pipping

2014-10-29 19:09

reporter   ~0001298

@luigi scarso: Could you please check if the MWE from

  http://tex.stackexchange.com/a/209196/16940

looks as expected, too, with this experimental version of luatex?

luigi scarso

2014-10-29 19:33

developer  

test-0000487.pdf (40,113 bytes)

luigi scarso

2014-10-29 19:37

developer   ~0001299

%% test-0000487.tex
\documentclass[a4paper]{article}
\usepackage{microtype}
\usepackage{amsthm}
\newtheorem{proposition}{Proposition}
\usepackage{lipsum}
\begin{document}
\begin{proposition}
  \lipsum
\end{proposition}
\end{document}

$> luatex --fmt=lualatex.fmt test-0000487.tex
gives
test-0000487.pdf
on a TL 2014 with luatex experimental

# luatex --version
This is LuaTeX, Version beta-0.79.2 (TeX Live 2015/dev)

Execute 'luatex --credits' for credits and version details.

There is NO warranty. Redistribution of this software is covered by
the terms of the GNU General Public License, version 2 or (at your option)
any later version. For more information about these matters, see the file
named COPYING and the LuaTeX source.

Copyright 2014 Taco Hoekwater, the LuaTeX Team.

NOTE: the format must be recreated, for example with
luatex --ini lualatex.ini

pipping

2014-10-29 20:02

reporter   ~0001300

Great!

Issue History

Date Modified Username Field Change
2010-09-24 08:35 Taco New Issue
2010-11-29 17:15 Taco Status new => assigned
2010-11-29 17:15 Taco Assigned To => arthur
2010-11-29 17:15 Taco Assigned To arthur => Taco
2011-09-17 17:56 woodbird Note Added: 0000909
2011-09-17 17:56 woodbird Note Edited: 0000909
2014-10-01 21:47 pipping Note Added: 0001281
2014-10-06 14:22 luigi scarso File Added: test-type1.pdf
2014-10-06 14:23 luigi scarso File Added: test-otf.pdf
2014-10-06 14:24 luigi scarso Note Added: 0001284
2014-10-06 14:26 luigi scarso Note Edited: 0001284
2014-10-29 19:10 pipping Note Added: 0001298
2014-10-29 19:33 luigi scarso File Added: test-0000487.pdf
2014-10-29 19:37 luigi scarso Note Added: 0001299
2014-10-29 20:02 pipping Note Added: 0001300
2015-10-06 20:11 Hans Hagen Status assigned => closed
2015-10-06 20:11 Hans Hagen Resolution open => fixed