[tex-k] metapost bug? font reencodings are ignored

Vladimir Volovich vvv@vsu.ru
Fri, 01 Feb 2002 00:31:33 +0300


Hi,

consider some sample metapost file:

verbatimtex
%&latex
\documentclass[a4paper,12pt]{article}
\usepackage[T2A]{fontenc}
\usepackage[koi8-r]{inputenc}
\pagestyle{empty}
\begin{document}    
etex                       
prologues:=2;
beginfig(1);
label(btex ΤΕΣΤ-ΤΕΣΤ etex, (0,0));
endfig;
end;

when processing that file with mpost, i get:

%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: -25 -3 25 3 
%%Creator: MetaPost
%%CreationDate: 2000.05.03:1207
%%Pages: 1
%%DocumentFonts: SFRM1200
 /larm1200 /SFRM1200 def
/fshow {exch findfont exch scalefont setfont show}bind def
%%EndProlog
%%Page: 1 1
-24.05666 -2.57306 moveto
(\362\345\361\362-\362\345\361\362) larm1200 11.95517 fshow
showpage
%%EOF

note that /larm1200 is defined to be /SFRM1200
but no reencoding takes place.

i.e. it looks like mpost finds an entry in psfonts.map, but ignores
the ReEncodeFont command.

is this a bug?

as a result, the characters are taken from adobe standardencoding, but
not from T2A encoding.

Best,
v.