From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88664 Path: news.gmane.org!not-for-mail From: Keith McKay Newsgroups: gmane.comp.tex.context Subject: Re: the new simplefonts stuff Date: Fri, 05 Sep 2014 11:19:33 +0100 Organization: The PotHole Press Message-ID: <54098E35.6090709@gmail.com> References: <87wq9jrh44.fsf@ellen.idiomdrottning.org> <5D145AD1-28A8-491E-8601-DE1369F3E663@gmail.com> 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 1409912399 6189 80.91.229.3 (5 Sep 2014 10:19:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Sep 2014 10:19:59 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 05 12:19:55 2014 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 1XPqcU-00065T-CY for gctc-ntg-context-518@m.gmane.org; Fri, 05 Sep 2014 12:19:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CC5AC10222 for ; Fri, 5 Sep 2014 12:19:53 +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 M4+KNy1oYal7 for ; Fri, 5 Sep 2014 12:19:53 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 21BE810228 for ; Fri, 5 Sep 2014 12:19:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03AB1101EA for ; Fri, 5 Sep 2014 12:19:42 +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 ljgEhlj8uH5V for ; Fri, 5 Sep 2014 12:19:37 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id F317B101E3 for ; Fri, 5 Sep 2014 12:19:36 +0200 (CEST) Original-Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s85AJaki022171 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 5 Sep 2014 12:19:36 +0200 Original-Received: by mail-wi0-f174.google.com with SMTP id d1so552092wiv.1 for ; Fri, 05 Sep 2014 03:19:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:organization:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=smDu6IWT/aQPHEPBeBwhDwPGq84eScg1eBPJCTWq/J0=; b=WA9rBg0xlt4LtDcCjWjOtS5aEPGxF+nhWf7pbsGlKiLWP/SCpQKJRVfGG5LTKU60JZ Y6Pjww+DrOA+TeFiPIfKctXBu8j+540mPFNYsvUcaMkfvY9XpC+oDUVGZUkvjXfkvzhf HUI8NVuMi370FgZ/R25iDyyyLSfPtu01BO3vyoCWo99Y6Q648kJmxQSV/v/+tG1K2kdM b2qROahp5AksrdwRWkIQ/DrbSG0cuSvBlmNVuviwwl0U4CTnO7obrd12zrBMD6RgCsnE +wZZdJMp9TcWKUIV3Or7g53vbbvaN9+GOe7+07tBnMiK40DxcjaxkqtdzqS+pf3+woiF kvTQ== X-Received: by 10.194.123.1 with SMTP id lw1mr13639007wjb.4.1409912375325; Fri, 05 Sep 2014 03:19:35 -0700 (PDT) Original-Received: from Keiths-Mac-mini.local (cpc12-uddi22-2-0-cust219.20-3.cable.virginm.net. [82.15.155.220]) by mx.google.com with ESMTPSA id dc9sm1495620wib.5.2014.09.05.03.19.33 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Fri, 05 Sep 2014 03:19:34 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <5D145AD1-28A8-491E-8601-DE1369F3E663@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::22e; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01MLmjAdE - 0aef03a2dc6d - 20140905 X-Scanned-By: CanIt (www . roaringpenguin . com) 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:88664 Archived-At: Wolfgang's wee bit of code is brilliant for finding out the details of font names. The icing on the cake would be if it printed the details in its own font so we could see what it looked like. But in any case a useful bit of code. Thanks Wolfgang. Best Wishes Keith McKay On 04/09/2014 11:24, Wolfgang Schuster wrote: > Am 04.09.2014 um 09:15 schrieb Sandra Snan : > >> %% Just as a test for \definefontfamily, which works, text shows up in >> %% DejaVu Serif which is a ttf font. >> % \definefontfamily [five] [serif] [DejaVu Serif] >> >> %% This is what fontforge reports as the family name for >> %% Baskervaldx-Reg. It works for me, text shows up in Baskervaldx, which >> %% is an otf font. >> % \definefontfamily [five] [serif] [Baskervaldx] >> >> %% Fontforge called this the ``name for humans'', it didn't fly, text didn't show up: >> % \definefontfamily [five] [serif] [Baskervaldx Regular] >> >> %% This is straight out of the manual, works, text shows up bookman. >> %% Wanted this look, but with \definefontfamily. >> % \definetypeface [five] [rm] [serif] [bookman] >> >> %% None of these worked. Text doesn't show up at all. >> % \definefontfamily [five] [rm] [URW Bookman L Light] >> % \definefontfamily [five] [rm] [urwbookmanlligh] >> % \definefontfamily [five] [rm] [URWBookmanL-Ligh] >> % \definefontfamily [five] [rm] [URW Bookman L] >> >> \setupbodyfont [five] >> \starttext >> Hello, snow! Won't you go, and return in december? >> \stoptext > Below is a short example which shows the different names in a font, as you can > see in the output the names in each font are different except from the familyname > entry which is the same for all. > > \definefontfamily [five] [rm] [URW Bookman L] > > \setupbodyfont [five] > > \starttext > > \dolookupfontbyspec{fontname=urwbookman*} > > \dorecurse{\dolookupnoffound} > {\starttabulate[|l|l|] > \NC Familyname \EQ \dolookupgetkeyofindex{familyname}{#1} \NC\NR > \NC Fontname \EQ \dolookupgetkeyofindex{fontname}{#1} \NC\NR > \NC Fullname \EQ \dolookupgetkeyofindex{fullname}{#1} \NC\NR > \NC Filename \EQ \dolookupgetkeyofindex{filename}{#1} \NC\NR > \NC Rawname \EQ \dolookupgetkeyofindex{rawname}{#1} \NC\NR > \stoptabulate > \page} > > \stoptext > > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________