% hints-t1.tex: a hinted Type 1 font (Latin Modern Roman 10, lmr10.pfb, TeX Live package lm).
%
%   context hints-t1           (LMTX: converts the Type 1 font to CFF)
%   pdftex  hints-t1           (pdfTeX: embeds the Type 1 font; ec-lmr10.tfm and lm.map come with TeX Live)
%
% The same 32 glyphs, sizes and positions as hints-ttf.tex.  lmr10.pfb uses subroutines, hint
% replacement (othersubr 3), flex, vstem3 and `div' widths.

\def\hW{515.625bp} \def\hH{93.75bp}
\newdimen\hX \newdimen\hY
\def\hG#1{\hbox to 0pt{\kern\hX\raise\hY\hbox{\char#1\relax}\hss}\advance\hX by 15.625bp }
\def\hRow#1#2{\hX=6.25bp \hY=#2 #1%
  \hG{72}\hG{97}\hG{109}\hG{98}\hG{117}\hG{114}\hG{103}\hG{101}\hG{102}\hG{111}\hG{110}\hG{115}\hG{116}\hG{105}\hG{118}% Hamburgefonstiv
  \hG{48}\hG{49}\hG{50}\hG{51}\hG{52}\hG{53}\hG{54}\hG{55}\hG{56}\hG{57}% 0-9
  \hG{233}\hG{252}\hG{197}\hG{231}\hG{241}\hG{228}\hG{246}}% e-acute u-dieresis A-ring c-cedilla n-tilde a-dieresis o-dieresis
\def\hPage{\hbox to \hW{\vrule width 0pt height \hH depth 0pt
  \hRow\Fa{75bp}\hRow\Fb{50bp}\hRow\Fc{21.875bp}\hss}}

\ifdefined\startTEXpage
  % ConTeXt LMTX
  \definefont[Fa][file:lmr10.afm at 6.25bp]
  \definefont[Fb][file:lmr10.afm at 9.375bp]
  \definefont[Fc][file:lmr10.afm at 12.5bp]
  \def\hRun{\starttext \startTEXpage[offset=0pt] \hPage \stopTEXpage \stoptext}
\else
  % pdfTeX
  \pdfoutput=1 \pdfpagewidth=\hW \pdfpageheight=\hH \hoffset=-1truein \voffset=-1truein
  \font\Fa=ec-lmr10 at 6.25bp \font\Fb=ec-lmr10 at 9.375bp \font\Fc=ec-lmr10 at 12.5bp
  \def\hRun{\shipout\hPage \end}
\fi
\hRun
