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] 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. -- Best regards, Vyatcheslav mailto:yatskovsky@gmail.com
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 -----------------------------------------------------------------
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.
You need a typescript, that is something along the lines of ✃✃✃✃ \starttypescript [serif] [adobecaslon] [name] \definefontsynonym [Serif] [ACaslonPro-Regular] \definefontsynonym [SerifItalic] [ACaslonPro-Italic] \definefontsynonym [SerifBold] [ACaslonPro-Bold] \definefontsynonym [SerifBoldItalic] [ACaslonPro-BoldItalic] \stoptypescript \starttypescript [serif] [adobecaslon] [size] \definebodyfont [rm] [tf=Serif, it=SerifItalic, bf=SerifBold, bi=SerifBoldItalic] \stoptypescript \starttypescript [caslon] \definebodyfontenvironment [caslon] [default] [iterlinespace=2.6ex] \definetypeface [caslon] [rm] [serif] [adobecaslon] \stoptypescript \usetypescript [caslon] [ec] \setupbodyfont [caslon] \starttext William Caslon released his first typefaces in 1722. % Caslon’s types were based on seventeenth-century Dutch old style designs, which were then used extensively in England. Because of their remarkable practicality, Caslon’s designs met with instant success. Caslon’s types became popular throughout Europe and the American colonies; printer Benjamin Franklin hardly used any other typeface. The first printings of the American Declaration of Independence and the Constitution were set in Caslon. \stoptext ✁✁✁✁ And for an even fancier design :-) \definefontfeature [historic] [script=latn,language=DFLT,dlig=yes,hist=yes,onum=yes] and replace the typeface definition with \definetypeface [caslon] [rm] [serif] [adobecaslon] [default] [features=historic] P-S for Idris: I just received my copy of the last issue of TUGboat, and your article is absolutely great! That's what I used exclusively for the above :-)
On Wed, 08 Aug 2007 14:51:12 -0600, Arthur Reutenauer
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.
You need a typescript, that is something along the lines of
<snip>
P-S for Idris: I just received my copy of the last issue of TUGboat, and your article is absolutely great! That's what I used exclusively for the above :-)
Hmm, never got my own copy of that issue, need to contact Karl... But I'm very glad it was useful! Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
participants (4)
-
Arthur Reutenauer
-
Hans Hagen
-
Idris Samawi Hamid
-
Vyatcheslav Yatskovsky