From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57058 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: simplefonts Date: Sat, 13 Mar 2010 17:17:58 +0100 Message-ID: <4B9BBAB6.7080009@googlemail.com> References: <54d7f5601003121111g59f37924q6e03dffb49e6ea32@mail.gmail.com> <15AD5E9D-8B8E-43FA-9980-92B9F786E974@uni-bonn.de> <4B9AA660.2040606@googlemail.com> <4B9AC062.7040000@wxs.nl> <4B9B2422.8090104@googlemail.com> <20100313061928.GB2314@khaled-laptop> <4B9B820A.2060309@wxs.nl> <4B9B8488.9010409@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1268497130 17169 80.91.229.12 (13 Mar 2010 16:18:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Mar 2010 16:18:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 13 17:18:39 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 1NqU2v-0003d1-3G for gctc-ntg-context-518@m.gmane.org; Sat, 13 Mar 2010 17:18:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E0E1BC9CF4; Sat, 13 Mar 2010 17:18:36 +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 YiIqZb94kyIc; Sat, 13 Mar 2010 17:18:16 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 23945C9D2A; Sat, 13 Mar 2010 17:18:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 13FD1C9D2A for ; Sat, 13 Mar 2010 17:18:14 +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 UnCv25GSMGnq for ; Sat, 13 Mar 2010 17:18:02 +0100 (CET) Original-Received: from mail-fx0-f222.google.com (mail-fx0-f222.google.com [209.85.220.222]) by balder.ntg.nl (Postfix) with ESMTP id 5FDBCC9CF4 for ; Sat, 13 Mar 2010 17:18:02 +0100 (CET) Original-Received: by fxm22 with SMTP id 22so2171963fxm.34 for ; Sat, 13 Mar 2010 08:18:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Mp+W7TqJIgcp1wogeBh0UcqHoP13oWcEYO0Pcm9rBsc=; b=mMGFiNbki0ziIWeX3YQKE7LxvV3Dgad8jnbDQZIUN0WsX/IjByS/PYO+tNr3yXN2nU 1816WF9s6DjeeDgmx2NVjNbuDCGmhyh4EUqTxrXR9tfJKDyWrqj0g4XPykHJGkc6Qem5 cY2jEqxN54povgufdLJogaj6e3gtolNcLIiyo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=EVE84MA/MkS14FmKvMcKXtz/VLflqYGNKT5gnrHNlY64W8CCujrK3Eik8grxeLaikW zOX6xfAAbp0W1ES+3zOM+OL+0Wi8XCfeCuOo7Q6mhHSn2AAaVCSu38We5EzGLNl0GQ1S NvxCvFJP2XjJpjtRR+jOkk+hGVNsnbdTsTcOc= Original-Received: by 10.87.62.28 with SMTP id p28mr8983863fgk.55.1268497081950; Sat, 13 Mar 2010 08:18:01 -0800 (PST) Original-Received: from [192.168.2.23] (p5B296353.dip.t-dialin.net [91.41.99.83]) by mx.google.com with ESMTPS id e20sm2821860fga.10.2010.03.13.08.18.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 13 Mar 2010 08:18:01 -0800 (PST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 In-Reply-To: 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:57058 Archived-At: Am 13.03.10 14:27, schrieb Andreas Harder: > would you provide an example of how to use this information? > font-ini.mkiv %D some low level helpers %D %D \starttyping %D \def\TestLookup#1% %D {\dolookupfontbyspec{#1} %D pattern: #1, found: \dolookupnoffound %D \blank %D \dorecurse {\dolookupnoffound} {% %D \recurselevel:~\dolookupgetkeyofindex{fontname}{\recurselevel}\quad %D }% %D \blank} %D %D \TestLookup{familyname=helveticaneue} %D \TestLookup{familyname=helveticaneue,weight=bold} %D \TestLookup{familyname=helveticaneue,weight=bold,style=italic} %D \stoptyping You can ask ConTeXt to look for a font in it's database with the keys - familyname (e.g. TeX Gyre Pagella or Latin Modern Roman) - weight (normal, bold, light, medium etc.) - style (normal, italic) - variant (normal, smallcaps) - fontname (e.g. texgyrepagellaregular) - ... The information in the database are not always perfect (because fonts are a mess) but I'll try to improve this in the next time. 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 ___________________________________________________________________________________