[Fontinst] table figures?

Lars Hellström lars.hellstrom at residenset.net
Tue May 24 15:01:03 CEST 2005


At 12.14 +0200 2005-05-24, Ingo Reich wrote:
>Thanks to everybody for all the suggestions.
[snip]
>Just a suggestion:
>maybe the use of table figures could make its way -- bei Gelegenheit! --
>into the fontinstallationguide.
[snip]
>What I'm thinking of is (i) a short illustration of how to build a
>font family with table figures using fontinst,

Then I should perhaps add that there is also another way of centering a
couple of glyphs to achieve uniform width, using the <glyph>-spacing
integers:

  \setint{zero-spacing}{\sub{\int{digitwidth}}{\width{zero}}}

Pedagogically it may be less instructive, as it relies on a rather special
mechanism for overriding letterspacing, but the end results are (up to
rounding) the same. Hence the shortest code for doing what Ingo wanted is
probably something like

  \setint{digitwidth}{500}
  \foreach(glyph){zero,one,two,three,four,five,six,seven,eight,nine}
     \setint{\str{glyph}-spacing}{\sub{\int{digitwidth}}{\width{\str{glyph}}}}
  \endfor(glyph)

Lars Hellström




More information about the fontinst mailing list