ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Lars Huttar <lars_huttar@sil.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: simplefonts: defining a fallback for a non-main font
Date: Fri, 15 Nov 2013 09:48:57 -0500	[thread overview]
Message-ID: <52863459.7090703@sil.org> (raw)
In-Reply-To: <413E6E87-C275-445F-B594-F693C050BCEB@gmail.com>

On 11/14/2013 5:06 PM, Wolfgang Schuster wrote:
> Am 14.11.2013 um 22:52 schrieb Lars Huttar <lars_huttar@sil.org>:
>
>> ... But then I have another font for the title:
>> \definesimplefont[titleface][Gentium Basic][size=40pt]
>>
>>
>> How do I set a fallback for it?
>> ...
> There is no support for this with the old version of the module.
>

For posterity, here is how I worked around it:

\usemodule[simplefonts]

% The main font for text:
\setmainfont[Gentium Book Basic]

\setmainfontfallback[Gentium Plus][range={ipaextensions}, force=yes,
rscale=auto]

% The font for the title:
\def\titlefont{Gentium Basic}

\starttext

% Temporarily change the main font, while keeping the main font fallback:
{ \setmainfont[\titlefont] \switchtobodyfont[40pt] Title with a fancy
ɠlyph }


% Back to our previously defined main font:

Body text ...

\stoptext


Lars

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

  parent reply	other threads:[~2013-11-15 14:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-14 21:52 Lars Huttar
2013-11-14 22:06 ` Wolfgang Schuster
2013-11-14 22:10   ` Lars Huttar
2013-11-15 14:48   ` Lars Huttar [this message]
2013-11-15 16:50     ` Aditya Mahajan
2013-11-15 19:30       ` Lars Huttar

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=52863459.7090703@sil.org \
    --to=lars_huttar@sil.org \
    --cc=ntg-context@ntg.nl \
    /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).