Am Montag, 29. November 2010, um 12:50:01 schrieb Florian Wobbe:
> 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

Wonderfull!
I'm starting to get the hang of it. Even the stylistic sets work like a charm. 
I've attached the output file in case you want to have a look at what I'm doing 
here.
Now one last question would be: How can I insert a certain character with its 
opentype name? For example \insertopentypecharacter{f_f_h.alt}. That would be 
cool because otfinfo -g shows all the glyph names and one must not fiddle 
arount 
with hex numbers or char-stuff.
In XeTeX it is possible to do so with \XeTeXglyph\XeTeXglyphindex"Q.alt1" (or 
Q.alt2). That would access the first (or second) alternate glyph for the letter 
Q.

You really helped a lot here. Thank you!

Chris

Attachment: test.pdf
Description: Adobe PDF document

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to