[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dotlessj in 8r fonts



 Sebastian Rahtz :
>  >  >  how can I have fontinst believe that the font ptmr8r.mtx
 >  >  > has a raw glyph whose metrics are defined like this
 >  > preprocess the AFM file? i started looking at this too and
 >  > gave up after a short while
 >  > 
 > 
 > well yes: me too, whence my question;-) would be better however not to
 > change the AFM. I'm able with a dotlessj.mtx to have the good
 > ptmr8r.pl but not ptmr8r.mtx. or I do AFM -> mtx + dotlessj.mtx -> pl
 > -> mtx??
 > 
 >  >  > if it's not in the AFM. would it be easy to add an \adddotlessj to the
 >  >  > \transformfont sugar? or is there a better way?
 >  > maybe ALan can comment
 > 
 

well here is the worst piece of fontinst code I've ever used. It does
the job however.

%% fontinst.rc
\let\DESIGNUNITS=\ignore_parens
\def\installbasefont#1#2#3#4#5#6#7{
\transformfont{#18rX}{\reencodefont{8r}{\fromafm{#18a}}}
   \install_font{#18rX}{#18rX,dotlessj,8r}{#2}{#3}{#4}{#5}{#6}{#7}{\etxtopl}
  \transformfont{#18r}{\scalefont{100}\frompl{#18rX}}
   \install_font{#18r}{#18r,dotlessj,8r}{#2}{#3}{#4}{#5}{#6}{#7}{\etxtopl}
}

%% build_utmb
      \installbasefont{utmb}{8r}{8r}{utm}{b}{n}{}
        \pltomtx{utmb8r}{utmb8r}
      \installfont{utmb7t}{utmb8r,latin}{OT1}{OT1}{utm}{b}{n}{}
      \installfont{utmb8t}{utmb8r,latin}{T1}{T1}{utm}{b}{n}{}

%% dotlessj.mtx
\relax
\metrics

\needsfontinstversion{1.6}

\setglyph{dotlessj}
   \resetitalic{\italic{dotlessi}}
         \resetdepth{\depth{j}}
         \resetwidth{\width{j}}
         \resetitalic{\italic{dotlessi}}
         \resetheight{\height{dotlessi}}
\endsetglyph
\endmetrics


also I had to modify fontinst.sty so that    
   \catcode`\_=\underscorecatcode
is reset _after_    \primitiveinput fontinst.rc
isn't it what's expected?

have a good evening
   Thierry Bouche.       -----       thierry.bouche@ujf-grenoble.fr
          http://www-fourier.ujf-grenoble.fr/~bouche/