[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] gropdf track kerning issue
From: |
Peter Schaffter |
Subject: |
Re: [Groff] gropdf track kerning issue |
Date: |
Tue, 16 Oct 2012 17:42:30 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Deri --
On Tue, Oct 16, 2012, Deri James wrote:
> On Tuesday 02 Oct 2012 13:45:40 Peter Schaffter wrote:
> > Deri,
> >
> > I've encountered a problem with gropdf and the .tkf request. When
> > I process this example with -Tpdf, the first block of type renders
> > perfectly. However, when I add track kerning, two anomalies creep
> > in: extra space is being added between the "D" and the en-dash
> > afterwards (in the \*[D-] string), and the letters "n" and "v" in
> > "conversation" are overprinting (see attached .pdf).
> >
> > ====================================================================
> > .ds smallcaps \f[B]\s[-.5]
> > .ds normal \f[]\s[+.5]
> > .ds D- \*[smallcaps]D\|\v'-1p'\[en]\v'1p'\*[normal]
> > .ds JWS- \*[smallcaps]JWS\|\v'-1p'\[en]\v'1p'\*[normal]
> > .
> > .ft TR
> > .ps 12
> > .vs 16
> > .ll 29P
> > .sp |1i
> > .
> > Following Day 40, the arrangement of the hieroglyphs began
> > to look like dialogue. First, there'd be a stanza headed \*[JWS-].
> > Afterwards came two more blocks, the first one introduced by \*[D-].
> > A con\%versation between minds?
> > .sp
> > .tkf \n[.f] 1 -.15 1 -.15
> > Following Day 40, the arrangement of the hieroglyphs began
> > to look like dialogue. First, there'd be a stanza headed \*[JWS-].
> > Afterwards came two more blocks, the first one introduced by \*[D-].
> > A con\%versation between minds?
> > ====================================================================
>
> Hi Peter,
>
> A two pipe problem!
>
> This patch fixes it. (Problem was that the "D" is not kerned
> in either paragraph, but gropdf calculated its width using
> the previous kern factor, so got the glyph positioning wrong
> (until groff emitted an absolute 'H' command -between "con" and
> "versation")).
>
> Note: It applies against current CVS, it also contains the
> positioning fix when drawing lines, which you already have.
Patch applied. Problem fixed. One more bug bites the dust. Or
hits the windshield. Thanks.
--
Peter Schaffter
Author of The Binbrook Caucus
http://www.schaffter.ca