[Dev-luatex] [PATCH] Bug 487 (negative protrusion)

Taco Hoekwater taco at elvenkind.com
Thu Apr 24 16:02:55 CEST 2014


On 23 Apr 2014, at 11:08, Dominic Jänichen <d.newsgroups at gmail.com> wrote:

> I was affected by bug 487 using microtype's protrusion=true.
> Digging around, I found that the error lies in round_xn_over_d (pdfgen.w). 
> Please find attached a patch to correct the issue.

Applied, thank you.

> Aside: I wonder whether its method to calculate still makes sense, given 
> modern compiler optimizations. What about something along the lines of..?
> 	unsinged long long t = x * n;
> 	t = t % d;
> 	if (t > INT_MAX) arith_error = true;
> 	return (scaled) t;

Yes, the current version looks weird, but I want to keep it as-is until I
have time to do a more global cleanup.

Best wishes,
Taco



More information about the dev-luatex mailing list