[Fontinst] T1/fcd/m/sc has wrong glyph for \v{z}, ! in \~{[C-LR-Zc-LR-Z]}

Peter Dyballa Peter_Dyballa at Web.DE
Thu Jun 16 12:01:58 CEST 2005


Hello!

Here is very, very interesting case:

I am converting the Unicode encoded TrueType font Cardo 
(http://scholarsfonts.net/cardofnt.html) into PostScript to install it 
in TeX via fontinst as fcd. Cardo has real SmallCaps! And SmallCaps 
accents too!! To save the wealth of this font for TeX I introduced the 
new font encoding, 8p, which can be derived from Pete or from 
provisional or from private, that takes all those glyphs that TS1 and 
expert encodings have (except for mathematics yet). Using fontsmpl.tex 
I create a PDF file to check my work. For T1/fcd/m/sc some accents for 
the diacritics are too bold, but the real mistakes are:

	• \v{z} becomes ``&´´
	• \~ on each of these [C-LR-Zc-LR-Z] leads to an ! printed on the 
character, only \~[ANOano] are correct

What's going wrong here? The recent fontinst TeX input file is quite 
simple, i.e. no provisions to create an expert font yet:

\batchmode
\input fontinst.sty
\resetstr{PSfontsuffix}{.pfb}
\recordtransforms{inst.recs}
%\fontinstversion
%%%%%%%%%%%%%%%%%%%%%
%%% Cardo Regular %%%
%%%%%%%%%%%%%%%%%%%%%
\setint{slant}{175}
%\setint{smallcapsscale}{670}	%N X.sc ; B 11 0 553 461 ⁒ N X ; B 2 0 
784 688 ;
% We're starting with some real things!
%%%% This is the usual set:
%  \transformfont{fcdr8r} {\reencodefont{8r} {\fromafm{fcdr8a}}}
%% Here are the extras from TrueType:
%  \afmtomtx{fcdr8p}{fcdr8p}
%  \mtxtopl{fcdr8p}{fcdr8p}
%% Here are the the slanted alternates:
   \transformfont{fcdro8r}{\slantfont{\int{slant}} {\fromafm{fcdr8r}}}
   \transformfont{fcdro8p}{\slantfont{\int{slant}} {\fromafm{fcdr8p}}}
%%%
\installfonts
%%%
  \installfamily{OT1}{fcd}{}
   \installfont  {fcdr7t}   {fcdr8r,fcdr8p,newlatin}            {ot1} 
{OT1}{fcd}{m}{n}{}
   \installfont  {fcdrc7t}  {fcdr8r,fcdr8p,newlatin}            
{ot1c}{OT1}{fcd}{m}{sc}{}
   \installfont  {fcdro7t}{fcdro8r,fcdro8p,newlatin option 
nosc}{ot1i}{OT1}{fcd}{m}{sl}{}
%
  \installfamily{T1} {fcd}{}
   \installfont  {fcdr8t}   {fcdr8r,fcdr8p,newlatin}             {t1}  
{T1}{fcd}{m}{n}{}
   \installfont  {fcdrc8t}  {fcdr8r,fcdr8p,newlatin}             {t1c} 
{T1}{fcd}{m}{sc}{}
   \installfont  {fcdro8t}{fcdro8r,fcdro8p,newlatin option nosc} {t1}  
{T1}{fcd}{m}{sl}{}
%
  \installfamily{TS1}{fcd}{}
   \installfont  {fcdr8c}   {fcdr8r,fcdr8p,textcomp}            {ts1} 
{TS1}{fcd}{m}{n}{}
   \installfontas{fcdr8c}                                             
{TS1}{fcd}{m}{sc}{}
   \installfont  {fcdro8c}{fcdro8r,fcdro8p,textcomp}            
{ts1i}{TS1}{fcd}{m}{sl}{}
%%%
\endinstallfonts

\endrecordtransforms
\bye


--
Greetings

   Pete

Without vi there is only GNU Emacs



More information about the fontinst mailing list