ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Bruce Horrocks via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Bruce Horrocks <ntg@scorecrow.com>
Subject: Re: Smallcaps not working with a font that claims to have it - how can I confirm? SOLVED
Date: Mon, 20 Sep 2021 12:40:35 +0100	[thread overview]
Message-ID: <6FC60398-0FE3-46BF-90DE-B808C3390459@scorecrow.com> (raw)
In-Reply-To: <9BD3FA05-3B5E-45D9-A15A-CA9874C4CDFD@scorecrow.com>

Found it from an old email of Wolfgang's in the archive - not sure why I didn't see it before.

Solution is to use:

\definefontfeature[latin-smallcaps][smallcaps][script=latn]
\definefontsynonym [Squar] [name:SquarishSansCT-Regular] [features=latin-smallcaps]

instead of the first two lines in my example below.

> On 20 Sep 2021, at 10:53, Bruce Horrocks <ntg@scorecrow.com> wrote:
> 
> I'm trying to use smallcaps with a font called SquarishSansCT.
> 
> According to mtxrun it has smcp as a feature...
> 
> $ mtxrun --script font --list --info --pattern=squar
> [...]
> mtx-fonts       | gsub features:
> mtx-fonts       |
> mtx-fonts       |   feature  script   languages
> mtx-fonts       |
> mtx-fonts       |   c2sc     grek     dflt    
> mtx-fonts       |            latn     dflt    
> mtx-fonts       |   smcp     grek     dflt    
> mtx-fonts       |            latn     dflt    
> mtx-fonts       |
> 
> ...but I can't seem to get that feature to work in this MWE which works for TexGyreSchola.
> 
> \definefontfeature [smallcaps] [always] [smcp=yes]
> \definefontsynonym [Squar] [name:SquarishSansCT-Regular] [features=smallcaps]
> \definefontsynonym [Schola] [name:texgyreschola-regular] [features=smallcaps]
> 
> \definefont [chapterTitle] [Squar at 18pt]
> \definefont [anotherTitle] [Schola at 18pt]
> 
> \starttext
> {\chapterTitle A Chapter Title}
> \par
> {\anotherTitle A Chapter Title}
> \stoptext
> 
> Have I missed something or is it the font?
> —
> Bruce Horrocks
> Hampshire, UK
> 

—
Bruce Horrocks
Hampshire, UK

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

      reply	other threads:[~2021-09-20 11:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-20  9:53 Smallcaps not working with a font that claims to have it - how can I confirm? Bruce Horrocks via ntg-context
2021-09-20 11:40 ` Bruce Horrocks via ntg-context [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6FC60398-0FE3-46BF-90DE-B808C3390459@scorecrow.com \
    --to=ntg-context@ntg.nl \
    --cc=ntg@scorecrow.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).