Typescript troubles with semibold font.
Hi all, my goal is to use Minion Pro as text face and Myriad Pro as sans serif in headings etc. I use TeXlive, ConTeXt 2009.11.26 16:28, MKiV. I found a typescipt once provided in this list in 2008 and adopted it. Here it is: \starttypescript [serif] [minionpro] \definefontsynonym [MinionPro-Regular] [name:minionproregular] \definefontsynonym [MinionPro-Bold] [name:minionprobold] \definefontsynonym [MinionPro-It] [name:minionproit] \definefontsynonym [MinionPro-BoldIt] [name:minionproboldit] \stoptypescript \starttypescript [serif] [minionpro] \definefontsynonym [Serif] [MinionPro-Regular] [features=default] \definefontsynonym [SerifBold] [MinionPro-Bold] [features=default] \definefontsynonym [SerifItalic] [MinionPro-It] [features=default] \definefontsynonym [SerifBoldItalic] [MinionPro-BoldIt] [features=default] \stoptypescript \starttypescript [sans] [myriadpro] \setups[font:fallback:sans] \definefontsynonym [MyriadPro-Regular] [name:myriadproregular] \definefontsynonym [MyriadPro-Bold] [name:myriadprosemibold] \definefontsynonym [MyriadPro-It] [name:myriadproit] \definefontsynonym [MyriadPro-BoldIt] [name:myriadprosemiboldit] \stoptypescript \starttypescript [sans] [myriadpro] \definefontsynonym [Sans] [MyriadPro-Regular] [features=default] \definefontsynonym [SansBold] [MyriadPro-Bold] [features=default] \definefontsynonym [SansItalic] [MyriadPro-It] [features=default] \definefontsynonym [SansBoldItalic] [MyriadPro-BoldIt] [features=default] \definefontsynonym [SansCaps] [Sans] [features=latin-smallcaps] \stoptypescript The Problem is, as long as the bold font files are present in my .fonts folder, they get used instead of the semibold (that I declared with name:myriadprosemibold). When I delete them, the semibold ones get used. My question is: Can anyone provide me some insight on how to use bold and semibold in the same document? Lets say chapter headings bold, sectionheadings semibold. Thanks in advance, Christian P.S: A guide "how to get from font files to the desired output" would be great. Steps would include where to put the fonts (.otf in my case), how to make context know the fonts, writing the typescript, using font features.
On 02/09/11 11:35, Christian wrote:
Hi all,
my goal is to use Minion Pro as text face and Myriad Pro as sans serif in headings etc. I use TeXlive, ConTeXt 2009.11.26 16:28, MKiV.
Based on ideas from the forthcoming book "context mkiv -- Fonts": % note: I have deleted all lines except the relevant ones for defining % the semi bold alternatives \definefontalternative [sb] \definefontalternative [si] \definebodyfont [default] [ss] [sb=SansSemiBold sa 1, si=SansSemiBoldItalic sa 1] \starttypescript [sans] [myriadpro] \definefontsynonym [MyriadPro-SemiBold] [name:myriadprosemibold] \definefontsynonym [MyriadPro-SemiBoldIt][name:myriadprosemiboldit] \stoptypescript \starttypescript [sans] [myriadpro] \definefontsynonym [SansSemiBold] [MyriadPro-SemiBold] [features=default] \definefontsynonym [SansSemiBoldItalic] [MyriadPro-SemiBoldIt] [features=default] \stoptypescript \starttypescript [myriadpro] \definetypeface [myriadpro] [ss] [sans] [myriadpro] [default] \stoptypescript \usetypescript[myriadpro] \starttext \switchtobodyfont[myriadpro,ss] \sb Hello \si Italic \stoptext
Thank you very much Taco and Florian. After a quick test it seems to work. Now I have something to fiddle around with. Cheers Christian Am Mittwoch, 9. Februar 2011, um 12:09:40 schrieb Taco Hoekwater:
On 02/09/11 11:35, Christian wrote:
Hi all,
my goal is to use Minion Pro as text face and Myriad Pro as sans serif in headings etc. I use TeXlive, ConTeXt 2009.11.26 16:28, MKiV.
Based on ideas from the forthcoming book "context mkiv -- Fonts":
% note: I have deleted all lines except the relevant ones for defining % the semi bold alternatives
\definefontalternative [sb] \definefontalternative [si]
\definebodyfont [default] [ss] [sb=SansSemiBold sa 1, si=SansSemiBoldItalic sa 1]
\starttypescript [sans] [myriadpro] \definefontsynonym [MyriadPro-SemiBold] [name:myriadprosemibold] \definefontsynonym [MyriadPro-SemiBoldIt][name:myriadprosemiboldit] \stoptypescript
\starttypescript [sans] [myriadpro] \definefontsynonym [SansSemiBold] [MyriadPro-SemiBold] [features=default] \definefontsynonym [SansSemiBoldItalic] [MyriadPro-SemiBoldIt] [features=default] \stoptypescript
\starttypescript [myriadpro] \definetypeface [myriadpro] [ss] [sans] [myriadpro] [default] \stoptypescript
\usetypescript[myriadpro]
\starttext
\switchtobodyfont[myriadpro,ss]
\sb Hello \si Italic
\stoptext
participants (2)
-
Christian
-
Taco Hoekwater