Hi all,
I'm trying to use the font Palatino truetype with ConTeXt under teTeX
3.0 (FC4) by following the guide at
http://home.salamander.com/~wmcclain/context-help.html :
1. I have already all 4 files: palabi.ttf, palab.ttf, palai.ttf,
pala.ttf (under /usr/share/texmf/fonts/truetype/mscore folder)
2. I have already also all necessary tfm, vf (provided by vnTeX
3.0-rc1 of Han The Thanh)
3. I created a file named "type-pala.tex" with the following content:
--------------------- begin type-pala.tex ----------------------------------
\usetypescriptfile[type-buy]
\starttypescript [serif] [mspalatino] [t5]
\usetypescript[serif][fallback]
\definefontsynonym [PalatinoLinotype-Roman] [lprr8v] [encoding=t5]
\definefontsynonym [PalatinoLinotype-Bold] [lprb8v] [encoding=t5]
\definefontsynonym [PalatinoLinotype-Italic] [lprri8v] [encoding=t5]
\definefontsynonym [PalatinoLinotype-BoldItalic] [lprbi8v] [encoding=t5]
\stoptypescript
\starttypescript [serif] [mspalatino] [name]
\definefontsynonym [Serif] [PalatinoLinotype-Roman]
\definefontsynonym [SerifBold] [PalatinoLinotype-Bold]
\definefontsynonym [SerifItalic] [PalatinoLinotype-Italic]
\definefontsynonym [SerifBoldItalic] [PalatinoLinotype-BoldItalic]
\stoptypescript
\starttypescript [MSPalatino] [t5]
\definetypeface [MyPalatino] [rm] [serif] [mspalatino] [default] [encoding=t5]
\stoptypescript
----------------------- end of type-pala.tex
----------------------------------------------------
and a test file :
--------------------------- begin of test.tex
------------------------------------------------
\loadmapfile[mscorevn.map]
\language[vn]
\mainlanguage[vn]
\enableregime[utf]
\setupencoding[default=t5]
\setupbodyfont[reset]
\usetypescriptfile[type-pala]
\usetypescript[MSPalatino]
\setupbodyfont[MyPalatino,12pt]
\starttext
Vietnamese UTF-8 text here
\stoptext
------------------------- end of test.tex
--------------------------------------------------
In the map file mscorevn.map
($HOME/texmf/fonts/map/pdftex/vnextra/mscorevn.map)
I see :
------------------------------ mscorevn.map
------------------------------------------------------
lprr8v PalatinoLinotype-Roman " T5UniEncoding ReEncodeFont "