[Fontinst] \glyph_parameter change proposal

Vladimir Volovich vvv at vsu.ru
Tue Sep 2 19:58:25 CEST 2003


Lars,

what do you think of the following new definition of the
\glyph_parameter command:

\def\glyph_parameter#1#2{
   \if_defined{g-#2}\then
     \expandafter\expandafter\expandafter
       #1\csname g-#2\expandafter\endcsname
   \else\if_defined{g-#2-not}\then
     \expandafter\expandafter\expandafter
       #1\csname g-#2-not\expandafter\endcsname
   \else
% error: glyph not set
   \fi\fi
}

That will allow this command to find the glyph parameters even if the
glyph is not encoded. That will make it possible to use commands such
as \height{...} to extract glyph metrics for unencoded glyphs too. in
the current definition, such attempts will lead to errors.

Best,
v.



More information about the fontinst mailing list