bug-groff
[Top][All Lists]
Advanced

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

[bug #63067] [PATCH] [mm] cover page title can use wrong font family


From: G. Branden Robinson
Subject: [bug #63067] [PATCH] [mm] cover page title can use wrong font family
Date: Fri, 16 Sep 2022 12:40:01 -0400 (EDT)

Follow-up Comment #3, bug #63067 (project groff):

It's worth considering the possible side effects of this change.  Could it
cause the font family to change in an undesirable way for things that _aren't_
the document title on the cover page?

What calls the `misc@ev-keep` macro?

1. VERBON does.  However it takes over font selection, so this change would
seem to have no effect.

https://git.savannah.gnu.org/cgit/groff.git/tree/contrib/mm/m.tmac?id=5a1d89a4b59cc8b91d6b98f699258bf9a14041f5#n725

2. BS, the "start bottom block" macro.  It makes sense to me for such a bottom
block to use the document's configured default font family.  One can always
change fonts inside a BS/BE region if desired.

https://git.savannah.gnu.org/cgit/groff.git/tree/contrib/mm/m.tmac?id=5a1d89a4b59cc8b91d6b98f699258bf9a14041f5#n1453

3. DF, which starts a floating display.  The font mounting position is saved
prior to calling `misc@ev-keep` and then copied into the new environment
afterward.

https://git.savannah.gnu.org/cgit/groff.git/tree/contrib/mm/m.tmac?id=5a1d89a4b59cc8b91d6b98f699258bf9a14041f5#n1862

4. The `df@eot-print` macro, which appears to flush any pending floating
displays if the end of the document is reached.  This seems reasonable and
harmless, any display diversion that needs its font family changed can do so
at the time it is populated.

https://git.savannah.gnu.org/cgit/groff.git/tree/contrib/mm/m.tmac?id=5a1d89a4b59cc8b91d6b98f699258bf9a14041f5#n1896

5. DS, display start, work similarly to DF (#3 above) and the same analysis
applies.

https://git.savannah.gnu.org/cgit/groff.git/tree/contrib/mm/m.tmac?id=5a1d89a4b59cc8b91d6b98f699258bf9a14041f5#n2099

6. lix@print-text.  This internal macro is pretty deep in the call stack but
it appears to be used for formatting captions below figures, tables,
equations, examples, and so forth.  Font position 3 is used for this, so it
would appear to be customizable via explicit use of the `fp` request.

https://git.savannah.gnu.org/cgit/groff.git/tree/contrib/mm/m.tmac?id=5a1d89a4b59cc8b91d6b98f699258bf9a14041f5#n2639

7. lix@embedded-text.  This case seems similar to #6.

https://git.savannah.gnu.org/cgit/groff.git/tree/contrib/mm/m.tmac?id=5a1d89a4b59cc8b91d6b98f699258bf9a14041f5#n2663

8. ref@eot-print.  This case seems similar to #4, but it is for flushing
bibliographic references instead of displays.  In fact, this macro doesn't
format any text.

https://git.savannah.gnu.org/cgit/groff.git/tree/contrib/mm/m.tmac?id=5a1d89a4b59cc8b91d6b98f699258bf9a14041f5#n2888

9. ref@print-refs.  This is called by ref@eot-print and by `RP`.   This
actually formats the references by calling the `ref*mac` macro to which `RS`
appends.

https://git.savannah.gnu.org/cgit/groff.git/tree/contrib/mm/m.tmac?id=5a1d89a4b59cc8b91d6b98f699258bf9a14041f5#n2903

So I can't see any harm arising here.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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