From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61198 Path: news.gmane.org!not-for-mail From: Oliver Buerschaper Newsgroups: gmane.comp.tex.context Subject: Re: Virtual math Date: Wed, 25 Aug 2010 12:01:17 +0200 Message-ID: <3EBB0FF3-2C2B-4AEA-9D61-BA013085F1CC@mpq.mpg.de> References: <4C74E091.6010401@wxs.nl> 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="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1282730497 16952 80.91.229.12 (25 Aug 2010 10:01:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Aug 2010 10:01:37 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 25 12:01:36 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 1OoCnR-00045A-Ng for gctc-ntg-context-518@m.gmane.org; Wed, 25 Aug 2010 12:01:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 694D1CA567; Wed, 25 Aug 2010 12:01:29 +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 6IwUnma0Y2AX; Wed, 25 Aug 2010 12:01:29 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B506BCA57F; Wed, 25 Aug 2010 12:01:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AD847CA57F for ; Wed, 25 Aug 2010 12:01:24 +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 P4-S4c9YTU54 for ; Wed, 25 Aug 2010 12:01:19 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 9E122CA576 for ; Wed, 25 Aug 2010 12:01:19 +0200 (CEST) Original-Received: from post.rzg.mpg.de (post.rzg.mpg.de [130.183.30.42]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7PA1Ipp028628 for ; Wed, 25 Aug 2010 12:01:19 +0200 Original-Received: from shaun.fritz.box (nrbg-4d072e3c.pool.mediaWays.net [77.7.46.60]) (authenticated bits=0) by post.rzg.mpg.de (8.14.3/8.14.3) with ESMTP id o7PA1HcD1106686 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 25 Aug 2010 12:01:18 +0200 In-Reply-To: <4C74E091.6010401@wxs.nl> X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=130.183.30.42; country=DE; region=02; city=Garching; latitude=48.2500; longitude=11.6500; http://maps.google.com/maps?q=48.2500,11.6500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0dCWy1iO5 - 5c2d9a2531c7 - 20100825 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:61198 Archived-At: >> I need directions on how to get started with a virtual math font... I'd like to take an existing math font, say Latin Modern, and replace certain glyphs by their corresponding ones from an OpenType font, say Minion Pro. (Proper math kerning won't be an issue at the moment since I'm having in mind a proof-of-principle type of thing.) How would I do that? > > It depends on your goal. For instance if you want to support minion math, and it's not an otf font, then you need tfm with the right metrics. Given that they are in default tex encoding, you then just need to set up a virtual font definition (you can look into px-math.lfg to see how that is done for palatino). If your fonts have lots of exceptions you might need to create additional vectors. This sounds complicated... almost as I expected ;-) I'm not quite sure what these vectors are good for... so for the sake of a simple scenario: I'd like to start with the standard Latin Modern math fonts but grab the lower case italic \alpha from the OpenType font MinionPro-It.otf. Would I need to write such an additional vector? Oliver ___________________________________________________________________________________ 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 ___________________________________________________________________________________