bugGNU roff - Bugs: bug #60530, .fam request can (wrongly?) bypass...

 
 

bug #60530: .fam request can (wrongly?) bypass .ftr font remapping

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Wed 05 May 2021 12:29:08 PM UTC
   
 
Category:  Core Severity:  3 - Normal
Item Group:  Warning/Suspicious behaviour Status:  Duplicate
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 06 May 2021 03:11:03 AM UTC, comment #3: 

Thanks, Bjarni!  Closing this one as a duplicate of bug #59522.

G. Branden Robinson <gbranden>
Group administrator
Wed 05 May 2021 04:12:28 PM UTC, comment #2: 

  Look at #59522.

Bjarni Ingi Gislason <bjarniig>
Wed 05 May 2021 12:58:59 PM UTC, comment #1: 

This doesn't make sense to me; it sure feels wrong.

I added a debugging statement to dvi.tmac to make sure the remapping code was getting run (there's no in-language way to query the font remapping table, apparently), and ran the following.


$ grep 'ftr CR' tmac/dvi.tmac
.ftr CR CW
$ cat EXPERIMENTS/60530.trf
.if !'\*[.T]'dvi' .ab process me with -Tdvi
.fam C
fixed-pitch text
$ ./build/test-groff -b -ww -Tdvi -z EXPERIMENTS/60530.trf
dvi.tmac: debug: remapping DVI fonts
troff: backtrace: file 'EXPERIMENTS/60530.trf':2
troff: EXPERIMENTS/60530.trf:2: warning: can't find font 'CR'


Can someone confirm that this smells like a bug, or justify this behavior sufficiently clearly that I can explain it in our documentation, and offer a workaround?

G. Branden Robinson <gbranden>
Group administrator
Wed 05 May 2021 12:29:08 PM UTC, original submission:  

The DVI output driver has its own universe of fonts.  Its equivalent of Courier, "CW", exists but only has roman and italic styles.  No bold and no bold-italics.  Unfortunate.


$ printf '.TH cr 1\n.EX\nfoo\n.EE\n' | groff -Tdvi -z -man -b -ww
/usr/share/groff/1.22.4/tmac/an-ext.tmac:188: backtrace: macro 'EX'
troff: <standard input>:2: warning: can't find font 'CR'


an-old.tmac should remap Courier fonts as follows to accommodate the EX macro and users who request them with font escapes.

CR -> CW
CB -> CW
CI -> CWI
CBI -> CWI

G. Branden Robinson <gbranden>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bjarniig (Posted a comment)
  • -email is unavailable- added by gbranden (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-09-30 gbranden Assigned toNone gbranden
    2021-05-06 gbranden StatusNeed Info Duplicate
        Open/ClosedOpen Closed
    2021-05-05 gbranden CategoryMacro package man Core
        StatusNone Need Info
        Summary[man] needs to remap C* fonts if output driver is dvi .fam request can (wrongly?) bypass .ftr font remapping

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code