bug-groff
[Top][All Lists]
Advanced

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

[bug #60233] doc/groff.texi: ambiguity in .tkf documentation


From: G. Branden Robinson
Subject: [bug #60233] doc/groff.texi: ambiguity in .tkf documentation
Date: Tue, 11 Jan 2022 05:32:05 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Update of bug #60233 (project groff):

                  Status:                    None => Need Info              

    _______________________________________________________

Follow-up Comment #1:

Here is what I think is the relevant code from src/roff/troff/node.cpp.


hunits track_kerning_function::compute(int size)
{  
  if (non_zero) {
    if (max_size <= min_size)
      return min_amount; 
    else if (size <= min_size)                                
      return min_amount;                        
    else if (size >= max_size)
      return max_amount;   
    else                                                               
      return (scale(max_amount, size - min_size, max_size - min_size)   
              + scale(min_amount, max_size - size, max_size - min_size));
  }                                                                     
  else                                                           
    return H0;                      
}


It's very strange to me that track kerning functions get their own class, when
there's only one implementation.  Either someone had big plans that never came
to fruition, or I'm overlooking something.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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