ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: mixed English and Arabic using Simplefonts?
Date: Sat, 2 Oct 2010 19:10:11 +0200	[thread overview]
Message-ID: <E05ED061-9063-4161-A9F8-14EEC084FF03@gmail.com> (raw)
In-Reply-To: <A889760A-70F4-4D4F-96E5-111838ADABC8@fastmail.fm>


Am 02.10.2010 um 18:34 schrieb Talal Al-Azem:

> Dear Wolfgang and Khaled,
> 
> Thank you both for your replies. This has been very helpful. May I ask one further newbie question of simplefonts: how do I change the font for just the "fallback" font, without affecting the mainfont?

Try my example and you can see the font set with \setmainfont is used for the latin text and the font set with \setmainfontfallback is used for the arabic text without any manual font switching.

> Is there a way to do this by setting the size in points, or in scale (percentage), or some other fashion?

\definefontfeature[arabic][mode=node,language=dflt,script=arab,...]

\setmainfontfallback[Scheherazade][scale=1.66,range=arabic,features=arabic]

> In fontspec, i was accustomed to something like:
> 
> \newfontfamily{\arfont}[Script=Arabic,Scale=1.66,WordSpace=1.66]{Scheherazade-Regular}
> 
> I am sure there are equivalents for these feature (size, scale, wordspace); I've seen many features in the simplefonts pdf. But i'm unsure how to define something like "arfont" using simplefonts.

Simplefonts is not such a complex package like fontspec, it’s a simple wrapper around context’s typescript and fontfallback mechanism with a few options to change the typescript and typeface parameters.

A separate typeface can be created with

\definefontfeature[arabic][mode=node,language=dflt,script=arab,...]

\definesimplefonttypeface[arfont][Scheherazade][scale=1.66,features=arabic]

Wolfgang

___________________________________________________________________________________
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-10-02 17:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1.1286013601.1742.ntg-context@ntg.nl>
2010-10-02 16:34 ` Talal Al-Azem
2010-10-02 17:10   ` Wolfgang Schuster [this message]
2010-10-02  0:16 Talal Al-Azem
2010-10-02  4:32 ` Wolfgang Schuster
2010-10-02  9:25   ` Khaled Hosny

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=E05ED061-9063-4161-A9F8-14EEC084FF03@gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).