gbranden pushed a commit to branch master
in repository groff.

commit 722d10f30c396783014ba684f588711e692406e2
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Nov 24 11:32:49 2026 -0600

    src/roff/troff/node.cpp: Trivially refactor.
    
    * src/roff/troff/node.cpp (class font_info): Rename private member
      variable `internal_name` to `identifier`, since it tracks the name
      used in *roff to identify the font.  (It's the `TR` in `\f[TR]`.)
      Deeply confusingly, this _same file_ and some groff documentation
      applies the term "internalname" to the name space used by an external
      system to identify a font.  For example, PostScript uses names like
      "Times-Roman".
---
 ChangeLog               | 11 +++++++++++
 src/roff/troff/node.cpp |  8 ++++----
 2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 13310f4d6..37d25c3a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2026-11-24  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/node.cpp (class font_info): Trivially refactor.
+       Rename private member variable `internal_name` to `identifier`,
+       since it tracks the name used in *roff to identify the font.
+       {It's the `TR` in `\f[TR]`.}  Deeply confusingly, this _same
+       file_ and some groff documentation applies the term
+       "internalname" to the name space used by an external system to
+       identify a font.  For example, PostScript uses names like
+       "Times-Roman".
+
 2026-11-23  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/env.cpp (font_size::font_size)
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index e3498aef8..e9fc8976e 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -159,7 +159,7 @@ class font_info {
   font_size last_size;
   int last_height;
   int last_slant;
-  symbol internal_name;
+  symbol identifier;
   symbol external_name;
   font *fm;
   bool has_emboldening;
@@ -265,7 +265,7 @@ static int mounted_font_size = 0; // TODO?: 
mounted_font.size()
 
 font_info::font_info(symbol nm, int n, symbol enm, font *f)
 : last_tfont(0 /* nullptr */), number(n), last_size(0),
-  internal_name(nm), external_name(enm), fm(f),
+  identifier(nm), external_name(enm), fm(f),
   has_emboldening(false), is_constant_spaced(CONSTANT_SPACE_NONE),
   last_ligature_mode(1), last_kern_mode(1),
   cond_bold_list(0 /* nullptr */), sf(0 /* nullptr */)
@@ -467,12 +467,12 @@ void font_info::flush()
 
 bool font_info::is_named(symbol s) const
 {
-  return internal_name == s;
+  return identifier == s;
 }
 
 symbol font_info::get_name() const
 {
-  return internal_name;
+  return identifier;
 }
 
 symbol get_font_name(int fontno, environment *env)

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to