ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Khaled Hosny <khaledhosny@eglug.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: for each script a different font
Date: Tue, 7 Dec 2010 17:28:21 +0200	[thread overview]
Message-ID: <20101207152820.GB6410@khaled-laptop> (raw)
In-Reply-To: <4014F4A9-C1A7-4D14-A30C-FDC3BC65E839@uni-bonn.de>

On Tue, Dec 07, 2010 at 04:19:45PM +0100, Thomas A. Schmitz wrote:
> 
> On Dec 7, 2010, at 2:44 PM, Khaled Hosny wrote:
> 
> > Then:
> > 
> > \definefontsynonym [Serif][name:vollkornregular][fallbacks=arrows]
> > 
> > But I don't know how to use multiple fallbacks.
> 
> You can define as many fallbacks as you wish. Here's a silly example:
> 
> \definefontfallback [Foo] [name:texgyretermes-bold] [0x0031-0x0032] [force=yes,check=no]
> \definefontfallback [Foo] [name:texgyreheros-italic] [0x0033-0x0034] [force=yes,check=no]
> \definefontfallback [Foo] [name:texgyreadventor-bolditalic] [0x0035-0x0036] [force=yes,check=no]
> 
> \definefontsynonym[SerifPlus][Serif][fallbacks=Foo]
> 
> \definefont[MySerif][SerifPlus at 24pt]
> 
> \starttext
> 
> \MySerif 1234567890
> 
> \stoptext
> 
> That should get you going.

Thanks. I, naïvely, assumed I have to define several different fallbacks
and pass that do \definefontsynonym. This will simplify my font setup a
bit, but the issues in my other mail still exist.

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___________________________________________________________________________________
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
___________________________________________________________________________________

      reply	other threads:[~2010-12-07 15:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-06 22:39 Peter Schorsch
2010-12-07 13:44 ` Khaled Hosny
2010-12-07 15:19   ` Thomas A. Schmitz
2010-12-07 15:28     ` Khaled Hosny [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=20101207152820.GB6410@khaled-laptop \
    --to=khaledhosny@eglug.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).