Re: [NTG-context] Support for Bold Small Caps font alternative
Am 17.11.2013 um 11:04 schrieb honyk
Dear All,
in my document I combine both regular and bold small caps. As there is no predefined alternative for bold small caps variant, moreover, combining bold style and small caps has no effect, I've had to override an unused one:
\definefontsynonym[SerifCaps][file:pala.ttf][features=small-caps] \definefontsynonym[SerifBoldSlanted][file:palab.ttf][features=small-caps] % bold caps
Now I can switch styles using \sc and \bs.
It would be nice to have a dedicated alternative for this. Or am I missing something?
When you use a opentype font you can enable the small caps feature with the \feature command, there is no need for an additional font synonym. \setupbodyfont[pagella] \starttext Text {\feature[+][f:smallcaps]Text} {\bf Text {\feature[+][f:smallcaps]Text}} Text \smallcaps{Text} \bold{Text \smallcaps{Text}} \stoptext Wolfgang
On 2013-11-17 Wolfgang Schuster wrote:
Am 17.11.2013 um 11:04 schrieb honyk
: in my document I combine both regular and bold small caps. As there is no predefined alternative for bold small caps variant, moreover, combining bold style and small caps has no effect, I've had to override an unused one:
\definefontsynonym[SerifCaps][file:pala.ttf][features=small-caps] \definefontsynonym[SerifBoldSlanted][file:palab.ttf][features=small- caps] % bold caps
Now I can switch styles using \sc and \bs.
It would be nice to have a dedicated alternative for this. Or am I missing something?
When you use a opentype font you can enable the small caps feature with the \feature command, there is no need for an additional font synonym.
\setupbodyfont[pagella]
\starttext
Text {\feature[+][f:smallcaps]Text} {\bf Text {\feature[+][f:smallcaps]Text}}
Text \smallcaps{Text} \bold{Text \smallcaps{Text}}
\stoptext
Thanks for pointing me to this nice feature! This is even more robust. All my font definitions are based on this example http://wiki.contextgarden.net/Palatino_Linotype_under_MKIV (with the help of ConTeXt Reference Manual where I didn't notice something like this before). In the light of this all examples on that page could be switched rather to 'feature' based styling to emphasise the power of this feature :-) Jan
participants (2)
-
honyk
-
Wolfgang Schuster