[Fontinst] Problem generating OT2 Minion Cyrillic

Ulrich Dirr ud at art-satz.de
Wed Sep 3 11:31:12 CEST 2003


Vladimir Volovich wrote:
> here i was referring to the previously suggested file; now in the
> message i wote there is another approach with an intermediate font,
so
> you should have a reencoding entry in the map file. btw, you can
> always create the map entries with fontinst, and don't worry about
> them... (see the command \recordtransforms)
> 
>> \installfont{pmnr7k}{pmnrz,cyrillic}{OT2}{OT2}{pmnx}{m}{n}{}
> 
> this should be
> 
> \installrawfont{pmnr7k}{pmnrz,cyrillic}{OT2}{OT2}{pmnx}{m}{n}{}
> 
> Best,
> v.

Hi.

Great! Everything is working now. I've successfully generated the six
Adobe Minion Cyrillic fonts with lining digits. Additionally I will
try generate the files with oldstyle digits (with virtual fonts).

The nice stuff is that MAP & FD files are correctly generated, see
below.

I will also try to generate the files with T2A encoding ...

Thank you very much and best regards,
Ulrich Dirr

P.S. here is the source
--- minion-cyr.tex -----------------------------------------
\input fontinst.sty
% the next two files and cyrillic.mtx are from the t2 package
\input fnstcorr
\input cyralias
\installfonts

\fontinstcc
\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
}
\normalcc

\installfonts
\resetint{minimumkern}{4}

\recordtransforms{pmn-map}

\transformfont{pmnrz}{\reencodefont{OT2}{\fromafm{pmnr6w}}}
\transformfont{pmniz}{\reencodefont{OT2}{\fromafm{pmni6w}}}
\transformfont{pmnbz}{\reencodefont{OT2}{\fromafm{pmnb6w}}}
\transformfont{pmnbiz}{\reencodefont{OT2}{\fromafm{pmnbi6w}}}
\transformfont{pmnsz}{\reencodefont{OT2}{\fromafm{pmns6w}}}
\transformfont{pmnsiz}{\reencodefont{OT2}{\fromafm{pmnsi6w}}}

\installrawfont{pmnr7k}{pmnrz,cyrillic}{OT2}{OT2}{pmnx}{m}{n}{}
\installrawfont{pmni7k}{pmniz,cyrillic}{OT2}{OT2}{pmnx}{m}{it}{}
\installrawfont{pmnb7k}{pmnbz,cyrillic}{OT2}{OT2}{pmnx}{b}{n}{}
\installrawfont{pmnbi7k}{pmnbiz,cyrillic}{OT2}{OT2}{pmnx}{b}{it}{}
\installrawfont{pmns7k}{pmnsz,cyrillic}{OT2}{OT2}{pmnx}{sb}{n}{}
\installrawfont{pmnsi7k}{pmnsiz,cyrillic}{OT2}{OT2}{pmnx}{sb}{it}{}

\endrecordtransforms
\endinstallfonts

\input finstmsc.sty
\declarepsencoding{OT2}{OT2AdobeEncoding}{\download{ot2.enc}}
\resetstr{PSfontsuffix}{.pfb}
\adddriver{dvips}{pmn.map}
\input pmn-map
\donedrivers
\bye



More information about the fontinst mailing list