From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62260 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: mixed English and Arabic using Simplefonts? Date: Sat, 2 Oct 2010 19:10:11 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1286039453 19152 80.91.229.12 (2 Oct 2010 17:10:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Oct 2010 17:10:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 02 19:10:52 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P25bm-0004bs-DQ for gctc-ntg-context-518@m.gmane.org; Sat, 02 Oct 2010 19:10:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 633E4CA6CD; Sat, 2 Oct 2010 19:10:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3dwd35cDCkT9; Sat, 2 Oct 2010 19:10:45 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3BA68CA69E; Sat, 2 Oct 2010 19:10:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BE8CDCA69E for ; Sat, 2 Oct 2010 19:10:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0pnAaUsuolnZ for ; Sat, 2 Oct 2010 19:10:41 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 56E3BCA696 for ; Sat, 2 Oct 2010 19:10:41 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o92HAeq5010694 for ; Sat, 2 Oct 2010 19:10:40 +0200 Original-Received: by fxm10 with SMTP id 10so3603882fxm.14 for ; Sat, 02 Oct 2010 10:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=1S7Bo+G4nlE6A8lEjXKR3/o1biEH2psyJtuyJwP/Jq4=; b=EBlQblthW7rHJweq5l7d5TJoGoKykxr5SFF05+upHgJLqZb+8nTdjiPyWuffiXXwiz 9PTZnA7l9VbqIeuizbIspvwBtukW5iAnMbJUAxgM/bYZEVDAmKpGdfvL4G+/h6eBCM5z MzcLNReHTi3C1VP52EFwbdn+Mxlu9fCRgi/eU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=aUlBbWP8YnJI9fcbT6ipVxFGCkziM6bFgPHoozk7qAkqUrPa7EnPHZxUPJiyUK3Lyd whD65+OuE+sSjEMCyg2i9PK6YXHtqNb/dTQYUtBYIU/c3W76Q0zSRgn2zPyWtiw8DUFX qh8LLTYJ2vfp1qIYnoxNt+ovq+XtWEEGqoUq0= Original-Received: by 10.223.163.80 with SMTP id z16mr6906172fax.62.1286039440120; Sat, 02 Oct 2010 10:10:40 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B2946A4.dip.t-dialin.net [91.41.70.164]) by mx.google.com with ESMTPS id k25sm1263966fac.41.2010.10.02.10.10.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 02 Oct 2010 10:10:38 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06DdRaEH3 - e8c9c021c633 - 20101002 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:62260 Archived-At: 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 on= e 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 t= he latin text and the font set with \setmainfontfallback is used for the ar= abic text without any manual font switching. > Is there a way to do this by setting the size in points, or in scale (per= centage), or some other fashion? \definefontfeature[arabic][mode=3Dnode,language=3Ddflt,script=3Darab,...] \setmainfontfallback[Scheherazade][scale=3D1.66,range=3Darabic,features=3Da= rabic] > In fontspec, i was accustomed to something like: > = > \newfontfamily{\arfont}[Script=3DArabic,Scale=3D1.66,WordSpace=3D1.66]{Sc= heherazade-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 de= fine something like "arfont" using simplefonts. Simplefonts is not such a complex package like fontspec, it=92s a simple wr= apper around context=92s typescript and fontfallback mechanism with a few o= ptions to change the typescript and typeface parameters. A separate typeface can be created with \definefontfeature[arabic][mode=3Dnode,language=3Ddflt,script=3Darab,...] \definesimplefonttypeface[arfont][Scheherazade][scale=3D1.66,features=3Dara= bic] Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________