[Fontinst] extension of \etxtoenc

Werner LEMBERG wl at gnu.org
Thu Jun 24 16:42:59 CEST 2004


> >  Currently, I do
> >
> >    \setstr{encodingname}{C90Encoding}
> >    \offcommand{\setstr}
> >    \etxtoenc{c90}{c90}
>
> You don't have to do the \offcommand there, do you?  Remember that
> \set...  means "assign if not already assigned".

Aah, I forgot that.  Then you don't need an optional argument to
\etxtoenc, of course.

> >  Currently, I do
> >
> >    \let\setnotglyph \setrawglyph
> >
> >  in the fontinst control file.
>
> I can't see why it would be necessary, though.  If you always assign
> slots to all glyphs then it shouldn't make any difference, since all
> these commands would become \setrawglyphs after reencoding anyway.
> (Or actually, they would become \setscaledrawglyph commands.)

Hmm.  Assume that glyph `foo' has index 1 in the AFM file and `bar'
index -1.  Without the above \let, the names within fontinst for those
two glyphs are `foo' and `bar-not'.  If I have e.g.

  \Ligature{LIG}{foo}{bar}{foobar}     ,

fontinst emits a warning that glyph `bar' isn't available, and I had
to write

  \setglyph{bar}
    \glyph{bar-not}{1000}
  \endsetglyph

to overcome this.

Am I missing something?  Actually, I can't see any reason to ever use
\setnotglyph in case an ETX file is used.  Can you give an example for
a useful \setnotglyph?


    Werner



More information about the fontinst mailing list