Update of bug #68671 (group groff):

                  Status:               Need Info => Fixed
             Open/Closed:                    Open => Closed
         Planned Release:                    None => 1.25.0
                 Summary: [PATCH] gropdf default line width is wrong  =>
[PATCH] [gropdf] default line thickness is inconsistent with grops

    _______________________________________________________

Follow-up Comment #6:

Deri committed a fix.


commit 744d3a8f6f91877f15058f62b04e3e3f0fa1064b (HEAD, origin/master,
origin/HEAD)
Author: Deri James <[email protected]>
Date:   Thu Sep 3 23:27:31 2026 +0100

    Make gropdf behave the same as grops wrt stroked line width.
    
    The issue is that grops has 2 ways of setting the line width:-
    
    Mode 1 (the original - used by tbl if you include linesize(n))
    is to make lines proportional to the current font size.
    
    Mode 2 (a groff extension) is to use the drawing command \D't n'
    (millipoints).
    
    Issuing \D't -1' switches to mode 1, any positive number selects
    mode 2.
    
    grops starts in mode 1, gropdf starts in mode 2, this changes
    gropdf to start in mode 1.
    
    * src/devices/gropdf/gropdf.pl (initial): Replace single 'lwidth'
    with separate 'lwidths' (mode 1) and 'lwidtht' (mode 2). 'outwidth'
    is the current linewidth in the output stream.
    (sub do_s): Don't call Set_LWidth() each time font size changes,
    only needed if a drawing command is received, but do set 'lwidths'
    to a proportional width.
    (Set_LWidth()): Output relevant lwidth only if different from
    current setting.
    (sub do_D t): Set 'lwidtht'.
    (sub PlotArcSegment): Now use 'outwidth' which is currently set
    width.


I'll add a bug-closer to the _ChangeLog_ file.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68671>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to