[tex-k] Possible bug in TFM width description in gftype.web

Richard Sandberg mylodon at gmail.com
Tue Jul 2 10:49:50 CEST 2019


On line 574 of gftype.web it says:

"The character width~|w| duplicates the information in the \.{TFM}
file; it is $2^{24}$ times the ratio of the true width to the font's
design size."

2^24 should really be 2^20.

For example in mf.web it says:

"The character width~|w| duplicates the information in the \.{TFM}
file; it is a |fix_word| value relative to the design size, and it
should be independent of magnification."

And a fix_word is described as:

"The most important data type used here is a |@!fix_word|, which is a
32-bit representation of a binary fraction. A |fix_word| is a signed
quantity, with the two's complement of the entire word used to
represent negation. Of the 32 bits in a |fix_word|, exactly 12 are to
the left of the binary point; thus, the largest |fix_word| value is
$2048-2^{-20}$, and the smallest is $-2048$."

The same text with the wrong scaling factor is also in gftopk.web and
gftodvi.web.

See also https://tex.stackexchange.com/questions/498125/is-there-a-bug-in-gftype-webs-description-of-character-widths
where I posted a question to confirm this issue.

Regards,
Richard Sandberg


More information about the tex-k mailing list