![](https://secure.gravatar.com/avatar/8b5a3ee6fe397b9fd2f13c1ae4079f99.jpg?s=120&d=mm&r=g)
I have a font that already comes with a smallcaps variant. How do I define it? I've tried the following, which I think should work from the documentation I've seen, but doesn't: \starttypescript[serif] [garamond] \definefontsynonym[Serif] [file:/home/joel/.fonts/12/EBGaramond-Regular.otf] \definefontsynonym[SerifBold] [file:/home/joel/.fonts/12/EBGaramond-Bold.otf] \definefontsynonym[SerifItalic] [file:/home/joel/.fonts/12/EBGaramond-Italic.otf] \definefontsynonym[SerifBoldItalic] [file:/home/joel/.fonts/12/EBGaramond-BoldItalic.otf] \definefontsynonym[SerifCaps] [file:/home/joel/.fonts/13/EBGaramond12-AllSC.otf] \stoptypescript \starttypescript[sans] [garamond] \definefontsynonym[Sans] [file:/home/joel/.fonts/12/EBGaramond-Regular.otf] \definefontsynonym[SansBold] [file:/home/joel/.fonts/12/EBGaramond-Bold.otf] \definefontsynonym[SansItalic] [file:/home/joel/.fonts/12/EBGaramond-Italic.otf] \definefontsynonym[SansBoldItalic] [file:/home/joel/.fonts/12/EBGaramond-BoldItalic.otf] \definefontsynonym[SansCaps] [file:/home/joel/.fonts/13/EBGaramond12-AllSC.otf] \stoptypescript \starttypescript[garamond] \definetypeface[garamond] [rm][serif][garamond][default] \definetypeface[garamond] [ss][sans][garamond][default] \definetypeface[garamond] [mm][math][modern][default] \stoptypescript \starttext This is regular text. {\smallcaps This should be in smallcaps.} {\WORD This should be regular text, but capitalized, not really smallcaps.} \stoptext --Joel
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Am 24.04.22 um 16:21 schrieb Joel via ntg-context:
I have a font that already comes with a smallcaps variant.
How do I define it?
I've tried the following, which I think should work from the documentation I've seen, but doesn't:
\starttypescript[serif] [garamond] \definefontsynonym[Serif] [file:/home/joel/.fonts/12/EBGaramond-Regular.otf] \definefontsynonym[SerifBold] [file:/home/joel/.fonts/12/EBGaramond-Bold.otf] \definefontsynonym[SerifItalic] [file:/home/joel/.fonts/12/EBGaramond-Italic.otf] \definefontsynonym[SerifBoldItalic] [file:/home/joel/.fonts/12/EBGaramond-BoldItalic.otf] \definefontsynonym[SerifCaps] [file:/home/joel/.fonts/13/EBGaramond12-AllSC.otf] \stoptypescript
\starttypescript[sans] [garamond] \definefontsynonym[Sans] [file:/home/joel/.fonts/12/EBGaramond-Regular.otf] \definefontsynonym[SansBold] [file:/home/joel/.fonts/12/EBGaramond-Bold.otf] \definefontsynonym[SansItalic] [file:/home/joel/.fonts/12/EBGaramond-Italic.otf] \definefontsynonym[SansBoldItalic] [file:/home/joel/.fonts/12/EBGaramond-BoldItalic.otf] \definefontsynonym[SansCaps] [file:/home/joel/.fonts/13/EBGaramond12-AllSC.otf] \stoptypescript
\starttypescript[garamond] \definetypeface[garamond] [rm][serif][garamond][default] \definetypeface[garamond] [ss][sans][garamond][default] \definetypeface[garamond] [mm][math][modern][default] \stoptypescript
\starttext
This is regular text.
{\smallcaps This should be in smallcaps.}
{\WORD This should be regular text, but capitalized, not really smallcaps.}
\stoptext
SerifCaps etc. works with the traditional \sc, don’t know about \smallcaps. Are you sure your fonts are found? mtxrun --script fonts --list --all --pattern=EBGaramond If your regular OpenType font contains smallcaps, try: \definefontfeature[mysmallcaps][default][ smcp=yes, % smallcaps script=latn, ] \starttypescript [serif] [garamond] [name] ... \definefontsynonym [SerifCaps][EBGaramond-Regular][features=mysmallcaps] ... Hraban
![](https://secure.gravatar.com/avatar/8b5a3ee6fe397b9fd2f13c1ae4079f99.jpg?s=120&d=mm&r=g)
Replacing \smallcaps with \sc fixed it. I had assumed they were synonyms---the same as \bf vs \boldface, \it vs \italicface, but it seems they are different entirely?
Thanks!
--Joel
On Sunday, April 24, 2022, 11:19:10 AM MDT, Henning Hraban Ramm via ntg-context
I have a font that already comes with a smallcaps variant.
How do I define it?
I've tried the following, which I think should work from the documentation I've seen, but doesn't:
\starttypescript[serif] [garamond] \definefontsynonym[Serif] [file:/home/joel/.fonts/12/EBGaramond-Regular.otf] \definefontsynonym[SerifBold] [file:/home/joel/.fonts/12/EBGaramond-Bold.otf] \definefontsynonym[SerifItalic] [file:/home/joel/.fonts/12/EBGaramond-Italic.otf] \definefontsynonym[SerifBoldItalic] [file:/home/joel/.fonts/12/EBGaramond-BoldItalic.otf] \definefontsynonym[SerifCaps] [file:/home/joel/.fonts/13/EBGaramond12-AllSC.otf] \stoptypescript
\starttypescript[sans] [garamond] \definefontsynonym[Sans] [file:/home/joel/.fonts/12/EBGaramond-Regular.otf] \definefontsynonym[SansBold] [file:/home/joel/.fonts/12/EBGaramond-Bold.otf] \definefontsynonym[SansItalic] [file:/home/joel/.fonts/12/EBGaramond-Italic.otf] \definefontsynonym[SansBoldItalic] [file:/home/joel/.fonts/12/EBGaramond-BoldItalic.otf] \definefontsynonym[SansCaps] [file:/home/joel/.fonts/13/EBGaramond12-AllSC.otf] \stoptypescript
\starttypescript[garamond] \definetypeface[garamond] [rm][serif][garamond][default] \definetypeface[garamond] [ss][sans][garamond][default] \definetypeface[garamond] [mm][math][modern][default] \stoptypescript
\starttext
This is regular text.
{\smallcaps This should be in smallcaps.}
{\WORD This should be regular text, but capitalized, not really smallcaps.}
\stoptext
SerifCaps etc. works with the traditional \sc, don’t know about \smallcaps. Are you sure your fonts are found? mtxrun --script fonts --list --all --pattern=EBGaramond If your regular OpenType font contains smallcaps, try: \definefontfeature[mysmallcaps][default][ smcp=yes, % smallcaps script=latn, ] \starttypescript [serif] [garamond] [name] ... \definefontsynonym [SerifCaps][EBGaramond-Regular][features=mysmallcaps] ... Hraban ___________________________________________________________________________________ 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 ___________________________________________________________________________________
participants (2)
-
Henning Hraban Ramm
-
Joel