Hi all, I'm learning how to use ConTeXt recently, and I find difficulty using Minion Pro, which can be fully accessed using XeTeX. Here is how I use Minion Pro, and as far as I can see, there is no problem with the setup. \starttypescript[all][myfont][name] \definefontsynonym[Minion][MinionPro-Regular] \definefontsynonym[MinionBold][MinionPro-Bold] \definefontsynonym[MinionItalic][MinionPro-It] \definefontsynonym[MinionBoldItalic][MinionPro-BoldIt] \definefontsynonym[Myriad][MyriadPro-Regular] \definefontsynonym[MyriadBold][MyriadPro-Bold] \definefontsynonym[MyriadItalic][MyriadPro-It] \definefontsynonym[MyriadBoldItalic][MyriadPro-BoldIt] \stoptypescript \definefontfeature[minion][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, protrusion=quality, expansion=quality] \definefontfeature[minionsmcp][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, smcp=yes, protrusion=quality, expansion=quality] \definefontfeature[myriad][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, zero=yes, protrusion=quality, expansion=quality] \starttypescript[serif][myfont][name] \definefontsynonym[Serif][Minion][features=minion] \definefontsynonym[SerifBold][MinionBold][features=minion] \definefontsynonym[SerifItalic][MinionItalic][features=minion] \definefontsynonym[SerifBoldItalic][MinionBoldItalic][features=minion] \definefontsynonym[SerifSlanted][MinionItalic][features=minion] \definefontsynonym[SerifBoldSlanted][MinionBoldItalic][features=minion] \definefontsynonym[SerifCaps][MinionBold][features=minionsmcp] \stoptypescript \starttypescript[sans][myfont][name] \definefontsynonym[Sans][Myriad][features=myriad] \definefontsynonym[SansBold][MyriadBold][features=myriad] \definefontsynonym[SansItalic][MyriadItalic][features=myriad] \definefontsynonym[SansBoldItalic][MyriadBoldItalic][features=myriad] \definefontsynonym[SansSlanted][MyriadItalic][features=myriad] \definefontsynonym[SansBoldSlanted][MyriadBoldItalic][features=myriad] \definefontsynonym[SansCaps][Myriad][features=myriad] \stoptypescript \definetypeface [myfont] [rm] [serif] [myfont] [default] \definetypeface [myfont] [ss] [sans] [myfont] [default] \usetypescript[myfont] And I found there problems with the font. 1). Even though I tried to access the otf features (as you can see in my code), but I cannot access that (but I have successfully accessed the Minion Pro font) 2). I cannot use ``--'' to produce an *endash*. 3). I cannot use *``* to produce an leftquote and *''* an right quote. Can someone help me? Thanks. --------------------------- Cheers Fengnan Gao
Hi:
seems that you are using my typescript posted on yulewang.spaces.live.com:)
well,
- the first question, pls upgrade your context distribution. there was
a bug one week ago, but Hans fixed that.
- the second question and the third question are the same. you should
use unicode character in your ConTeXt document.
ps. there are several flaws in my blog post (like hyphenmark).
I will fix that if I have time.
Yue Wang
On 12/3/08, Fengnan Gao
Hi all,
I'm learning how to use ConTeXt recently, and I find difficulty using Minion Pro, which can be fully accessed using XeTeX. Here is how I use Minion Pro, and as far as I can see, there is no problem with the setup.
\starttypescript[all][myfont][name] \definefontsynonym[Minion][MinionPro-Regular] \definefontsynonym[MinionBold][MinionPro-Bold] \definefontsynonym[MinionItalic][MinionPro-It]
\definefontsynonym[MinionBoldItalic][MinionPro-BoldIt] \definefontsynonym[Myriad][MyriadPro-Regular] \definefontsynonym[MyriadBold][MyriadPro-Bold] \definefontsynonym[MyriadItalic][MyriadPro-It]
\definefontsynonym[MyriadBoldItalic][MyriadPro-BoldIt] \stoptypescript
\definefontfeature[minion][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, protrusion=quality, expansion=quality] \definefontfeature[minionsmcp][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, smcp=yes, protrusion=quality, expansion=quality] \definefontfeature[myriad][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, zero=yes, protrusion=quality, expansion=quality]
\starttypescript[serif][myfont][name] \definefontsynonym[Serif][Minion][features=minion]
\definefontsynonym[SerifBold][MinionBold][features=minion]
\definefontsynonym[SerifItalic][MinionItalic][features=minion]
\definefontsynonym[SerifBoldItalic][MinionBoldItalic][features=minion]
\definefontsynonym[SerifSlanted][MinionItalic][features=minion]
\definefontsynonym[SerifBoldSlanted][MinionBoldItalic][features=minion]
\definefontsynonym[SerifCaps][MinionBold][features=minionsmcp] \stoptypescript
\starttypescript[sans][myfont][name] \definefontsynonym[Sans][Myriad][features=myriad]
\definefontsynonym[SansBold][MyriadBold][features=myriad]
\definefontsynonym[SansItalic][MyriadItalic][features=myriad]
\definefontsynonym[SansBoldItalic][MyriadBoldItalic][features=myriad]
\definefontsynonym[SansSlanted][MyriadItalic][features=myriad]
\definefontsynonym[SansBoldSlanted][MyriadBoldItalic][features=myriad]
\definefontsynonym[SansCaps][Myriad][features=myriad] \stoptypescript
\definetypeface [myfont] [rm] [serif] [myfont] [default] \definetypeface [myfont] [ss] [sans] [myfont] [default] \usetypescript[myfont]
And I found there problems with the font.
1). Even though I tried to access the otf features (as you can see in my code), but I cannot access that (but I have successfully accessed the Minion Pro font)
2). I cannot use ``--'' to produce an *endash*.
3). I cannot use *``* to produce an leftquote and *''* an right quote.
Can someone help me?
Thanks.
--------------------------- Cheers
Fengnan Gao ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Feedback welcome. Make sure you use LuaTeX, add "% engine=luatex" right at the beginning of the main file. \starttypescript [serif] [minionpro] \definefontsynonym [MinionPro-Regular] [name:minionproregular] \definefontsynonym [MinionPro-Bold] [name:minionprobold] \definefontsynonym [MinionPro-Italic] [name:minionproit] \definefontsynonym [MinionPro-BoldItalic] [name:minionproboldit] \stoptypescript \starttypescript [serif] [minionpro] \definefontsynonym [Serif] [MinionPro-Regular] [features=default] \definefontsynonym [SerifBold] [MinionPro-Bold] [features=default] \definefontsynonym [SerifItalic] [MinionPro-Italic] [features=default] \definefontsynonym [SerifBoldItalic] [MinionPro-BoldItalic] [features=default] % \definefontsynonym [SerifSlanted] [SerifItalic] [features=default] \definefontsynonym [SerifCaps] [Serif] [features=smallcaps] \stoptypescript \starttypescript [sans] [myriadpro] \setups[font:fallback:sans] % \definefontsynonym [MyriadPro-Regular] [name:MyriadPro-Regular] [features=default] % \definefontsynonym [MyriadPro-Bold] [name:MyriadPro-Bold] [features=default] % \definefontsynonym [MyriadPro-Italic] [name:MyriadPro-It] [features=default] % \definefontsynonym [MyriadPro-BoldItalic] [name:MyriadPro-BoldIt] [features=default] \definefontsynonym [MyriadPro-Regular] [name:myriadproregular] \definefontsynonym [MyriadPro-Bold] [name:myriadprobold] \definefontsynonym [MyriadPro-Italic] [name:myriadproit] \definefontsynonym [MyriadPro-BoldItalic] [name:myriadproboldit] \stoptypescript \starttypescript [sans] [myriadpro] \definefontsynonym [Sans] [MyriadPro-Regular] [features=historic] \definefontsynonym [SansBold] [MyriadPro-Bold] [features=historic] \definefontsynonym [SansItalic] [MyriadPro-Italic] [features=historic] \definefontsynonym [SansBoldItalic] [MyriadPro-BoldItalic] [features=historic] \definefontsynonym [SansCaps] [Sans] [features=latin-smallcaps] \stoptypescript %%% Then i've got this in the file i want to typeset %%% \def\sc{\setfontfeature{smallcaps}} \definefontfeature [default][default] [protrusion=quality,expansion=quality,mode=node,script=latn] \definefontfeature [oldstyle][default] [protrusion=quality,expansion=quality,mode=node,script=latn,onum=yes] \definefontfeature [smallcaps][default] [protrusion=quality,expansion=quality,mode=node,script=latn,smcp=yes] \usetypescript [serif] [hanging] [pure] \setupalign [hanging] \usetypescriptfile[type-folio] \definetypeface[mainface][rm][serif][minionpro] [default] [features=default] \definetypeface[mainface][ss][sans][myriadpro] [default] [features=default] \definetypeface [mainface] [mm] [math] [palatino] [default] [encoding=texnansi] \setupbodyfont[mainface,12.5pt] \setfontfeature{oldstyle} ... text .... %%% xetex %%% \definefontfeature[default][deault][script=latn,onum=yes] \definetypeface[myface][rm][Xserif][Minion Pro] \definetypeface[myface][ss][Xsans][Myriad Pro] \definetypeface[myface][tt][Xmono][Consolas] \setupbodyfont[myface, 12pt] ... text .... Fengnan Gao wrote:
Hi all,
I'm learning how to use ConTeXt recently, and I find difficulty using Minion Pro, which can be fully accessed using XeTeX. Here is how I use Minion Pro, and as far as I can see, there is no problem with the setup.
\starttypescript[all][myfont][name] \definefontsynonym[Minion][MinionPro-Regular] \definefontsynonym[MinionBold][MinionPro-Bold] \definefontsynonym[MinionItalic][MinionPro-It] \definefontsynonym[MinionBoldItalic][MinionPro-BoldIt] \definefontsynonym[Myriad][MyriadPro-Regular] \definefontsynonym[MyriadBold][MyriadPro-Bold] \definefontsynonym[MyriadItalic][MyriadPro-It] \definefontsynonym[MyriadBoldItalic][MyriadPro-BoldIt] \stoptypescript
\definefontfeature[minion][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, protrusion=quality, expansion=quality] \definefontfeature[minionsmcp][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, smcp=yes, protrusion=quality, expansion=quality] \definefontfeature[myriad][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, zero=yes, protrusion=quality, expansion=quality]
\starttypescript[serif][myfont][name] \definefontsynonym[Serif][Minion][features=minion] \definefontsynonym[SerifBold][MinionBold][features=minion] \definefontsynonym[SerifItalic][MinionItalic][features=minion]
\definefontsynonym[SerifBoldItalic][MinionBoldItalic][features=minion] \definefontsynonym[SerifSlanted][MinionItalic][features=minion]
\definefontsynonym[SerifBoldSlanted][MinionBoldItalic][features=minion] \definefontsynonym[SerifCaps][MinionBold][features=minionsmcp] \stoptypescript
\starttypescript[sans][myfont][name] \definefontsynonym[Sans][Myriad][features=myriad] \definefontsynonym[SansBold][MyriadBold][features=myriad] \definefontsynonym[SansItalic][MyriadItalic][features=myriad]
\definefontsynonym[SansBoldItalic][MyriadBoldItalic][features=myriad] \definefontsynonym[SansSlanted][MyriadItalic][features=myriad]
\definefontsynonym[SansBoldSlanted][MyriadBoldItalic][features=myriad] \definefontsynonym[SansCaps][Myriad][features=myriad] \stoptypescript
\definetypeface [myfont] [rm] [serif] [myfont] [default] \definetypeface [myfont] [ss] [sans] [myfont] [default] \usetypescript[myfont]
And I found there problems with the font.
1). Even though I tried to access the otf features (as you can see in my code), but I cannot access that (but I have successfully accessed the Minion Pro font)
2). I cannot use ``--'' to produce an *endash*.
3). I cannot use *``* to produce an leftquote and *''* an right quote.
Can someone help me?
Thanks.
--------------------------- Cheers
Fengnan Gao
------------------------------------------------------------------------
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
2008/12/3 Fengnan Gao wrote:
Hi all,
I'm learning how to use ConTeXt recently, and I find difficulty using Minion Pro, which can be fully accessed using XeTeX.
/.../
And I found there problems with the font.
1). Even though I tried to access the otf features (as you can see in my code), but I cannot access that (but I have successfully accessed the Minion Pro font)
There are some problems every now and then. Which version do you use?
2). I cannot use ``--'' to produce an *endash*.
Use tlig=yes in font features.
3). I cannot use *``* to produce an leftquote and *''* an right quote.
That's deprecated and is deliberately not supported (it is possible, but ...). You should either use proper quotation marks or \quotation{...}. Mojca
participants (4)
-
Fengnan Gao
-
Mohamed Bana
-
Mojca Miklavec
-
Yue Wang