groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] gropdf track kerning issue


From: Deri James
Subject: Re: [Groff] gropdf track kerning issue
Date: Tue, 16 Oct 2012 19:05:23 +0100
User-agent: KMail/4.8.5 (Linux/3.3.8-desktop-2.mga2; KDE/4.8.5; x86_64; ; )

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.

Werner, proper patch/changelog will be sent to you separately.

Cheers 

Deri

Attachment: gropdf-161012.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]