I've been trying to figure out how to use Bembo Std (an OpenType font
from Adobe) in ConTeXt + XeTeX.
The example on the _Fonts in XeTeX_ page in the wiki works fine except
for small caps, which (not surprisingly) don't show up in this first
attempt:
\definetypeface[bembo][rm][Xserif][Bembo Std]
\setupbodyfont[bembo]
\starttext
Bembo {\bf Bembo} {\it Bembo} {\sc Bembo} Bembo.
\stoptext
Small caps are present in the font (feature "smcp" according to
otfinfo), as this minimal example shows:
\definetypeface[bembo][rm][Xserif][Bembo
Std:mapping=tex-text;+kern;+onum;+liga]
\setupbodyfont[bembo,11pt]
\setupbodyfontenvironment[default][em=italic]
\def\it{\definedfont["Bembo
Std-Italic:mapping=tex-text;+kern;+onum;+liga"]}
\def\bf{\definedfont["Bembo Std-Bold:mapping=tex-text;+kern;+onum"]}
\def\sc{\definedfont["Bembo Std:mapping=tex-text;+smcp;+kern;+onum"]}
\starttext
Bembo {\bf Bembo} {\it Bembo} {\sc Bembo} Bembo.
\stoptext
But that's a hack. So I create a file "type-bembo.tex":
\starttypescript[bembo][uc]
\definetypeface [bembo] [rm] [serif] [Bembo Std] [default]
[encoding=uc]
\definefontsynonym[BemboRegular]["Bembo Std:mapping=tex-text"]
[encoding=uc]
\definefontsynonym[BemboItalic] ["Bembo
Std-Italic:mapping=tex-text"][encoding=uc]
\definefontsynonym[BemboBold] ["Bembo Std-Bold:mapping=tex-text"]
[encoding=uc]
\definefontsynonym[BemboCaps] ["Bembo
Std:mapping=tex-text;+smcp"] [encoding=uc]
\stoptypescript
\starttypescript[serif][bembo][name]
\definefontsynonym[Serif] [BemboRegular]
\definefontsynonym[SerifItalic] [BemboItalic]
\definefontsynonym[SerifBold] [BemboBold]
\definefontsynonym[SerifCaps] [BemboCaps]
\definefontsynonym[SerifSlanted] [BemboItalic]
\definefontsynonym[SerifBoldItalic] [BemboBold]
\definefontsynonym[SerifBoldSlanted][BemboBold]
\stoptypescript
And a test file in the same directory as the typescript file:
\usetypescriptfile[type-bembo]
\usetypescript[bembo][uc]
\setupbodyfont[bembo,11pt]
\starttext
Bembo {\bf Bembo} {\it Bembo} {\sc Bembo} Bembo.
\stoptext
Now I get small caps all right, but everything's in Computer Modern.
:-( What am I doing wrong?
Changing the double quotes in the typescript to single quotes doesn't
make any difference; not does omitting the quotes or omitting the space
in "Bembo Std".
Here's the output from texexec --xtx --version:
TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE
1997-2005
texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE
1992-2006
tex : XeTeX, 3.141592-2.2-0.99b (Web2C 7.5.3)
context : ver: 2006.03.31 23:47
cont-en : ver: 2006.03.31 23:47 fmt: 2006.4.3 mes:
english
cont-nl : ver: 2006.03.31 23:47 fmt: 2006.4.3 mes:
dutch
Thanks in advance,
Paul.
--
Paul Hoffman