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 "
Taco Hoekwater said this at Mon, 29 Aug 2005 14:42:04 +0200:
Same result here, and I don't understand why (however, I not very familiar with typescripts myself).
Hmm. What's the pdftex output at the font-inclusion stage? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Never mind, it worked after I apllied Hans' change Taco Adam Lindsay wrote:
Taco Hoekwater said this at Mon, 29 Aug 2005 14:42:04 +0200:
Same result here, and I don't understand why (however, I not very familiar with typescripts myself).
Hmm. What's the pdftex output at the font-inclusion stage?
VnPenguin wrote:
\usetypescriptfile[type-pala] \usetypescript[MSPalatino]
\usetypescript[MSPalatino][t5] or \usetypescript[MSPalatino][\defaultencoding]
\setupbodyfont[MyPalatino,12pt]
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Adam Lindsay
-
Hans Hagen Outside
-
Taco Hoekwater
-
VnPenguin