[Fontinst] expanded fonts
Walter Schmidt
Walter Schmidt" <latex@arcor.de
Tue, 17 Dec 2002 11:20:47 +0100 (MEZ)
On Tue, 17 Dec 2002 10:41:22 +0100, Oliver Heins wrote:
>I use the latest
>fontinst-prerelease from ctan, and it says it's 1.914, but I don't
>know whether the patches are attached or not --
I suppose they aren't.
>nor where to get it, if not.
They have been posted to the list in the past.
Now I have included them below, for your convenience.
Put this stuff into a file named fontinst.rc,
which must reside in the search path of fontinst.
happy TeXing
Walter
PS: I will be off-line from 19. to 31 Dec.
%%%%%%%%%%%%%% fontinst v1.914 patch 1 %%%%%%%%%%%%
\def\reglyph_setglyph#1{
\command_survivance=0
\def\glyphname{#1}
\csname slots-#1\endcsname
\edef\a_macro{\noexpand\out_line{\string\setglyph{\glyphname}}}
\a_toks=\expandafter{\a_macro}
}
\def\reglyph_glyphpcc#1#2#3{
\def\glyphname{#1}
\csname slots-#1\endcsname
\edef\a_macro{\noexpand\out_lline{
\string\glyphppc{\glyphname}{#2}{#3}
}}
\a_toks=\expandafter{\the\expandafter\a_toks \a_macro}
}
\def\reglyph_samesize#1{
\def\glyphname{#1}
\csname slots-#1\endcsname
\edef\a_macro{\noexpand\out_lline{
\string\samesize{\glyphname}
}}
\a_toks=\expandafter{\the\expandafter\a_toks \a_macro}
}
%%%%%%%%%%%% v1.914 patch 4 %%%%%%%%%%%
\def\setscaledrawglyph#1#2#3#4#5#6#7#8#9{
\if_undefined{g-#1}\then
\eval_expr{#4}
\ifnum \result=\one_thousand
\let\a_macro\identity_one
\else
\edef\a_macro##1{\saved_scale{\the\result}{##1}}
\fi
\eval_expr_to\a_count{#6}
\eval_expr_to\b_count{#7}
\eval_expr_to\c_count{#8}
\eval_expr_to\d_count{#9}
\ifisint{rawscale}\then
\e_count=\int{rawscale}
\multiply \a_count \e_count \l_rounded_thousandths\a_count
\multiply \b_count \e_count \l_rounded_thousandths\b_count
\multiply \c_count \e_count \l_rounded_thousandths\c_count
\multiply \d_count \e_count \l_rounded_thousandths\d_count
\edef\a_macro##1{\saved_scale{\the\e_count}{\a_macro{##1}}}
\fi
\x_cs\edef{g-#1}{
{\the\a_count}
{\the\b_count}
{\the\c_count}
{\the\d_count}
{\a_macro{\saved_raw{#2}{#5}{#1}}}
{\a_macro{\saved_mapfont{#2}{#3}}}
}
\fi
}
\def\setscalednotglyph#1#2#3#4#5#6#7#8#9{
\if_undefined{g-#1-not}\then
\eval_expr_to\a_count{#6}
\eval_expr_to\b_count{#7}
\eval_expr_to\c_count{#8}
\eval_expr_to\d_count{#9}
\ifisint{rawscale}\then
\e_count=\int{rawscale}
\multiply \a_count \e_count \l_rounded_thousandths\a_count
\multiply \b_count \e_count \l_rounded_thousandths\b_count
\multiply \c_count \e_count \l_rounded_thousandths\c_count
\multiply \d_count \e_count \l_rounded_thousandths\d_count
\fi
\x_cs\edef{g-#1-not}{
{\the\a_count}
{\the\b_count}
{\the\c_count}
{\the\d_count}
{}{}
}
\fi
}
%%%%%%%%% end v1.914 patch 4 %%%%%%%%%%%
\endinput