URL:
  <https://savannah.gnu.org/bugs/?68938>

                 Summary: [troff] permit deconfiguration of track kerning
(`tkf` request)
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Fri 20 Nov 2026 10:24:28 PM UTC
                Category: Formatter
                Severity: 1 - Wish
              Item Group: Feature change
                  Status: Confirmed
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Unlocked
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Fri 20 Nov 2026 10:24:28 PM UTC By: G. Branden Robinson <gbranden>
Once you've set up track kerning for a font, you're stuck with it forever.


$ sed -n 7550,7581p src/roff/troff/node.cpp
static void configure_track_kerning_request() // .tkf
{
  if (!has_arg()) {
    warning(WARN_MISSING, "track kerning request expects arguments");
    skip_line();
    return;
  }
  font_lookup_info finfo;
  if (!read_font_identifier(&finfo))
    font_lookup_error(finfo, "to configure track kerning");
  else {
    int n = finfo.position, min_s, max_s;
    hunits min_a, max_a;
    if (has_arg()
        && read_measurement(&min_s,
                            (unsigned char)('z')) // TODO: grochar
        && read_hunits(&min_a,
                       (unsigned char)('p')) // TODO: grochar
        && read_measurement(&max_s,
                            (unsigned char)('z')) // TODO: grochar
        && read_hunits(&max_a,
                       (unsigned char)('p'))) { // TODO: grochar
      track_kerning_function tk(min_s, min_a, max_s, max_a);
      font_table[n]->set_track_kern(tk);
    }
    else {
      track_kerning_function tk;
      font_table[n]->set_track_kern(tk);
    }
  }
  skip_line();
}


Make it possible to unwind this, by giving `tkf` a font argument and no
others.







    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature

Reply via email to