On Nov 29, 2010, at 12:40 , Ch. B. wrote: > Am Montag, 29. November 2010, um 09:17:10 schrieb Florian Wobbe: >> On Nov 29, 2010, at 00:29 , ... wrote: >>> Good evening! >>> >>> First of all, I'm new to this list and also a context/luatex newbe. I >>> have some experience with LaTeX. >>> I want to use a font (Neutraface2) in my documents and I'm struggeling >>> with the typescript. I'm not able to get bold SmallCaps working (the >>> bold face .otf file has the feature smcp, I checked). >>> I tried various combinations and variations of \bf \sc in my document. It >>> gives me bold OR smallcaps, but not bold AND smallcaps. Whats wrong here? >>> Can someone give me an example typescript that I could modify to fit the >>> Neutraface2 font? My attempt to make one is attached. >>> >>> Greetings, >>> Chris >> >> Hi Chris, >> >> it does not work for pagella either. Did you try \setff{smallcaps} \bf >> instead? >> >> \usetypescript[pagella] >> \setupbodyfont[pagella] >> >> \starttext >> {\setff{smallcaps} This is in {\bf bold} SmallCaps} (works). >> {\sc This is in {\bf bold} SmallCaps} (does not). >> \stoptext >> >> Florian >> > > Hi Florian, > > that does work, thank you very much. > I assume the \setff means something like set font feature. If so, I could > shorten my typescript and only specify the 4 main font faces (regular, bold > italic, bold-italic) since the fonts all have all the opentype features i > need > (onum & smcp etc.) And these can be accessed via \setff{feature}, I guess.
Yes, you can define for instance \definefontfeature[dlig][default][dlig=yes] % Discretionary Ligatures: Activates uncommon ligatures \definefontfeature[frac][default][frac=yes,numr=yes] % Fractions e.g. 3/4 \definefontfeature[sups][default][sups=yes] % Superscript \definefontfeature[subs][default][subs=yes] % Subscript and access the font features with \setff{dlig}, \setff{subs} etc. Florian ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________