ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* struggling with font features (sc, os)
@ 2017-10-08 19:53 Henning Hraban Ramm
  0 siblings, 0 replies; only message in thread
From: Henning Hraban Ramm @ 2017-10-08 19:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi font wizards,
I’m trying to get rid of \sc and \os, but font features are unreliable...

With default LM, only the classical variants work.
With termes, heros, iwona, antykwa OTF sc and os work, while classical \sc and \os don’t.
With gentium both sc work, while the font doesn’t have onum.
Libertine works in all variants, Dejavu in none.
Alegreya has single sc fonts, so only \sc works.
Adobe Jenson Pro has smcp and onum features, but they only work with \definedfont. WTF?

While I can understand most of this, the last one is confusing. What could be wrong?
And how can I map an SC font to smcp feature of the Roman font?


\definefontfeature[default]
  [mode=node,script=latn,language=dflt,kern=yes,liga=yes,lnum=yes]
\mainlanguage[de]
\setupbodyfont[termes,12pt]

\definefontfeature[f:smallcaps][smcp=yes]
\definefontfeature[f:oldstyle][onum=yes,lnum=no]

\def\Sample{Hämbürgefonßy123\&-}

\starttext

\showbodyfont

normal: {\rm\Sample}{\ss\Sample}{\tt\Sample}

{\tex{os}: \os{\rm\Sample}{\ss\Sample}{\tt\Sample}}

{\feature[+][f:oldstyle] otf os: {\rm\Sample}{\ss\Sample}{\tt\Sample}}

{\tex{sc}: \sc{\rm\Sample}{\ss\Sample}{\tt\Sample}}

{\feature[+][f:smallcaps] otf sc: {\rm\Sample}{\ss\Sample}{\tt\Sample}}

{\definedfont[Serif*smallcaps at 16pt]\Sample}
{\definedfont[Sans*smallcaps at 16pt]\Sample}
{\definedfont[Mono*smallcaps at 16pt]\Sample}

\stoptext



Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-08 19:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-08 19:53 struggling with font features (sc, os) Henning Hraban Ramm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).