From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65883 Path: news.gmane.org!not-for-mail From: Khaled Hosny Newsgroups: gmane.comp.tex.context Subject: Re: Using virtual fonts defined with lua-code Date: Tue, 8 Feb 2011 16:46:05 +0200 Message-ID: <20110208144604.GA3943@khaled-laptop> References: <1wdobeyo3bvv9$.dlg@nililand.de> <4D514F77.8010207@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1297176397 17307 80.91.229.12 (8 Feb 2011 14:46:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Feb 2011 14:46:37 +0000 (UTC) Cc: news3@nililand.de To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 08 15:46:28 2011 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 1Pmopi-0004m1-BG for gctc-ntg-context-518@m.gmane.org; Tue, 08 Feb 2011 15:46:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7CAF6CA9FE; Tue, 8 Feb 2011 15:46:21 +0100 (CET) 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 0B2NdQwPzedf; Tue, 8 Feb 2011 15:46:17 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 82461CA9EC; Tue, 8 Feb 2011 15:46:17 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0EBBBCA9EC for ; Tue, 8 Feb 2011 15:46:16 +0100 (CET) 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 Is6hYpbLyO4x for ; Tue, 8 Feb 2011 15:46:14 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id 0615DCA9E9 for ; Tue, 8 Feb 2011 15:46:14 +0100 (CET) Original-Received: from mail-wy0-f169.google.com (mail-wy0-f169.google.com [74.125.82.169]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p18EkAop027996 for ; Tue, 8 Feb 2011 15:46:13 +0100 Original-Received: by wyj26 with SMTP id 26so6005024wyj.14 for ; Tue, 08 Feb 2011 06:46:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=R0v8yLMnY9EHQCct7fRfHj0NCnVFt5NsVv7UDP3WyuU=; b=xzTPvG2N5dO1X+E05vaUYtbg9KtapD+EbT1MMHRAUMcGQMUDaE9CsXuPhp8XJ4Hjsl TiBYKS7xakInDvKFOlxe0BrV/5ADSO3X1qsAF5MQ4xPfcMp+VmogDJPwHTzfz8dQJ8vf TQSURfhmRPQgQuQYPZPtPZrtL5jzsNWH7jJ8M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=Ohx2e0xP1qHjJQABUgRf18YWuXdTy6KLzX59SOC3ghdMlxwtSMMzbfQWVOOPHgmEBP 0bUFMY9M3LjXA2ud2HuCk3PHtvAqhavDjjHYNZVnz1EiotXacgHKX6AW/YhYgW7siOd0 Vg0Pl+bxI+bwbHuV5tMSKGLkqyx31dHo2mHY0= Original-Received: by 10.227.127.138 with SMTP id g10mr4352666wbs.105.1297176370498; Tue, 08 Feb 2011 06:46:10 -0800 (PST) Original-Received: from localhost ([41.176.174.214]) by mx.google.com with ESMTPS id u9sm4478766wbg.0.2011.02.08.06.46.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Feb 2011 06:46:09 -0800 (PST) Content-Disposition: inline In-Reply-To: <4D514F77.8010207@wxs.nl> User-Agent: Mutt/1.5.20 (2009-06-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.169; 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: 0BE5qKaSD - 9749ae062d9f - 20110208 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 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:65883 Archived-At: On Tue, Feb 08, 2011 at 03:13:11PM +0100, Hans Hagen wrote: > On 8-2-2011 10:40, Ulrike Fischer wrote: > >Hello, > > > >The luatex documentation contains in section "7.2.2 Example virtual > >font" an example how to define a virtual font "cmr10-red". The font > >is defined by adding the code to the define_font callback. > > > >Does some interface exists in contex/mkiv which allows to use such > >virtual fonts together with the normal font loading code? E.g. could > >I move the code for the font to some file ("cmr10-red.vflua") so > >that a request \font\mytest="cmr10-red" will simply find this file > >and use the code like vf, tfm or otf-files are found and used when > >needed? > > It's relatively easy to add support for that. However, when I've > done that Khaled has to make sure that it also works in his wrapper > code as I don't know to what extend he overloads code. I can only > test in the plain variant and context. I keep it as minimal as possible (I've even some "feature requests" to keep our local changes more smaller, but no time to check it now). Regards, Khaled -- Khaled Hosny Egyptian ___________________________________________________________________________________ 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 ___________________________________________________________________________________