Vyatcheslav Yatskovsky wrote:
Hello,
Have a problem with commercial font installation in luatex.
I have a collection of Adobe Caslon Pro font files: ACaslonPro-Bold.otf ACaslonPro-BoldItalic.otf ACaslonPro-Italic.otf ACaslonPro-Regular.otf ACaslonPro-Semibold.otf ACaslonPro-SemiboldItalic.otf
Arthur said that luatex cannot see system fonts (i.e. those installed in Windows), as XeTeX do, so I copied the font to texmf -- "...\tex\texmf\fonts\opentype\Adobe Caslon Pro" folder of mswincontext. (It was just my guess).
"luatools ACaslonPro-Regular.otf" shows the right path, so I assumed that luatex can find it.
I declared this font using rather naive approach (XeTeX-inspired):
\definetypeface [myface][rm][Serif] [{ACaslonPro-Regular}] \setupbodyfont [myface, 14pt]
a typeface is made up of regular, bold, italic, bolditalic etc
But this doesn't work. At the moment I'd be happy if can setup regular and italic, but have not an idea how to achieve it. Help me, please.
mkiv can see system fonts, that is, if you've set the OSFONTDIR variable, for instance set OSFONTDIR=c:/windows/fonts// next you need to make a typescript, e.g. i just installed (commercial) franklin fonts: \starttypescript [sans] [franklin] \definefontsynonym [FranklinBookRegular] [name:FranklinGothicBookITC-Regular] [features=default] \definefontsynonym [FranklinMediumRegular] [name:FranklinGothicMediumITC-Regular] [features=default] \definefontsynonym [FranklinDemiRegular] [name:FranklinGothicDemiITC-Regular] [features=default] \definefontsynonym [FranklinHeavyRegular] [name:FranklinGothicHeavyITC-Regular] [features=default] \definefontsynonym [FranklinBookItalic] [name:FranklinGothicBookITC-Italic] [features=default] \definefontsynonym [FranklinDemiItalic] [name:FranklinGothicMediumITC-Italic] [features=default] \definefontsynonym [FranklinHeavyItalic] [name:FranklinGothicDemiITC-Italic] [features=default] \definefontsynonym [FranklinMediumItalic] [name:FranklinGothicHeavyITC-Italic] [features=default] \stoptypescript \starttypescript [sans] [franklin] \definefontsynonym [Sans] [FranklinBookRegular] [features=default] \definefontsynonym [SansItalic] [FranklinBookItalic] [features=default] \definefontsynonym [SansBold] [FranklinDemiRegular] [features=default] \definefontsynonym [SansBoldItalic] [FranklinDemiItalic] [features=default] \definefontsynonym [SansSlanted] [SansItalic] [features=default] \definefontsynonym [SansBoldSlanted] [SansBoldItalic] [features=default] \definefontsynonym [SansCaps] [Sans] [features=smallcaps] \stoptypescript \definetypeface[franklin][rm][sans][franklin][default] \definetypeface[franklin][ss][sans][franklin][default] \definetypeface[franklin][tt][mono][modern] [default][rscale=1.12] \definetypeface[franklin][mm][math][iwona] [default][rscale=1.02] \setupbodyfont[franklin,ss,10pt] etc. context will forget about the xetex syntax, although low level xetex stuff like \font=\test=name:ACaslonPro-Regular:liga=yes; is supported, as is: \font=\test=name:ACaslonPro-Regular*default but best define fonts using typescripts ----------------------------------------------------------------- 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 -----------------------------------------------------------------