[bug #68345] [troff] stop throwing font deprecation warnings on font names the user remaps to valid names

"G. Branden Robinson" <[email protected]> Mon, 13 Jul 2026 19:07:03 -0400 (EDT)
Newsgroups gmane.comp.printing.groff.bugs
Message-ID <[email protected]>
Update of bug #68345 (group groff):

                  Status:             In Progress => Fixed
             Open/Closed:                    Open => Closed

    _______________________________________________________

Follow-up Comment #5:


commit df0f037eba362d516f8c7f59e16b51543a785c09
Author: G. Branden Robinson <[email protected]>
Date:   Mon Jul 13 12:50:37 2026 -0500

    [tmac,troff]: Fix Savannah #68345.
    
    Warn about a deprecated font name only if it isn't translated to a non-
    deprecated name.
    
    * tmac/ps.tmac: Drop font translations of deprecated names; leave it up
      to the user to do this.
    
    * src/roff/troff/env.cpp (environment::select_font): Look up the font's
      translated name using "node.cpp"'s `get_font_translation()`.  Move
      check for deprecated font name to follow font translation.
    
    * src/roff/troff/node.cpp (get_font_translation): Drop `static` linkage;
      as noted above, the function needs external visibility now.  Annotate
      planned future reversal of this change.
    
    * src/roff/troff/node.h: Declare `get_font_translation`.  Annotate
      planned future reversal of this change.
    
    Fixes <https://savannah.gnu.org/bugs/?68345>.  Thanks to Deri James for
    prompting this (IMO) superior direction for font name deprecation to
    take.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCalVvlwAKCRCqLAuaBUf3
Tr+EAP0fEJ+PG/vbItcWWdjSMeok5FWR729BhskssvhA+URxcQD9E2XfXdNy+2Tc
gjf/tYeQg3YdgAI761tnJPfyrjv8SA4=
=yLgN
-----END PGP SIGNATURE-----