From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83775 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Euler with fallback Date: Sat, 10 Aug 2013 12:36:29 -0400 (EDT) Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1376152604 22844 80.91.229.3 (10 Aug 2013 16:36:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Aug 2013 16:36:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 10 18:36:48 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V8C9n-00080V-UR for gctc-ntg-context-518@m.gmane.org; Sat, 10 Aug 2013 18:36:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F276110223; Sat, 10 Aug 2013 18:35:58 +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 JlcZ247OiCdd; Sat, 10 Aug 2013 18:35:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 001C81021D; Sat, 10 Aug 2013 18:35:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 926961021D for ; Sat, 10 Aug 2013 18:35:55 +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 m0YO+QUxGMMI for ; Sat, 10 Aug 2013 18:35:45 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id D15421021A for ; Sat, 10 Aug 2013 18:35:45 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r7AGaWDw002878 for ; Sat, 10 Aug 2013 18:36:33 +0200 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hackers.mr.itd.umich.edu ID 52066C0E.B76CE.15856 ; Authuser adityam; 10 Aug 2013 12:36:30 EDT User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.007 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QKb4Awtl - b7ccc2e385ef - 20130810 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83775 Archived-At: Hi all, This is to announce that the latest beta supports creating virtual math fonts with fallback. The main test case is to use Euler font with missing characters taken from Pagella but the mechanism is general and can be used to replace a specific set of math glyphs from a font. This feature is not extensively tested. As such it will be useful if everyone interested in math fallback mechanism could test this out and report any bugs or inconsistencies. To use this feature you have to use `pagellaovereuler` as your math font. For example, to use Euler with DejaVu fonts, use: \usetypescriptfile[euler] \starttypescript[mainface] \definetypeface[mainface][rm][serif][dejavu] [default] \definetypeface[mainface][ss][sans] [dejavu] [default] \definetypeface[mainface][tt][mono] [dejavu] [default] \definetypeface[mainface][mm][math] [pagellaovereuler][default] \stoptypescript \setupbodyfont[mainface] \appendtoks \rm \to \everymathematics \setupmathematics [lcgreek=normal, ucgreek=normal] There is a built-in typescript `euler-with-pagella` to use `pagellaovereuler` as the math font and `pagella` as the text font. If you are interested in implementing similar fallback mechanisms for other fonts, see type-imp-euler.mkiv and euler-math.lfg for details. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________