From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60439 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: using \definebodyfont with multiple size declarations -- Why? Date: Tue, 27 Jul 2010 19:42:37 +0200 Message-ID: <4C4F1A8D.8020103@wxs.nl> References: <55015.92159.qm@web56305.mail.re3.yahoo.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 1280252594 4651 80.91.229.12 (27 Jul 2010 17:43:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2010 17:43:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 27 19:43:09 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 1OdoBJ-0002qy-Bx for gctc-ntg-context-518@m.gmane.org; Tue, 27 Jul 2010 19:43:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1C763C9D29; Tue, 27 Jul 2010 19:43:08 +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 jQvnEO4Ih4gT; Tue, 27 Jul 2010 19:43:04 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C52D4C9D21; Tue, 27 Jul 2010 19:43:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 24630C9D22 for ; Tue, 27 Jul 2010 19:43:03 +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 mVcsMd4ihEoX for ; Tue, 27 Jul 2010 19:43:00 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (sc-162.r-213-125-29.schoolconnect.nu [213.125.29.162]) by balder.ntg.nl (Postfix) with ESMTP id 9659EC9D00 for ; Tue, 27 Jul 2010 19:43:00 +0200 (CEST) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 4.3g4) with ESMTP id 3097-1713362 for multiple; Tue, 27 Jul 2010 19:42:01 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.11) Gecko/20100711 Lightning/1.0b1 Thunderbird/3.0.6 ThunderBrowse/3.3.1 In-Reply-To: <55015.92159.qm@web56305.mail.re3.yahoo.com> X-Authenticated-User: hagen@controller-9 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:60439 Archived-At: On 26-7-2010 11:36, Martin Althoff wrote: > \definebodyfont [10pt,11pt,12pt] [rm] [tfe=Serif at 48pt, ite=SerifItalic at 48pt] > \tfe Big {\it Words}. > > What I simply don't understand is the need for multiple font size declarations. I can (kind of) see that it might be necessary (looking at typescripts), if the whole typescript resolves to "design sizes" where each point size is a single font file. But for ttf/otf fonts, ie. where the font is scaled? as mentioned, it originates in design sizes and finetuning for most fonts you will see things like \definetypeface [main] [rm] [serif] [palatino] [default] this will use the default set \definebodyfont [4pt,5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,14.4pt,17.3pt] [rm] [default] in principle we could do without, but this helps predefining a couple of things that otherwise would slow down each font switch it also relates to bodyfont environments where there are relationships between sizes but anyhow, it's mostly a side effect of lm having design sizes in practice, if you choose say 13pt it will work out ok as things are checked and defined on the fly; but there might be a slight performance hit > This minimal example, including a "special" font (TitleFont) works (almost) fine for me. > > % the only two statements to declare the fonts I want to use > \usetypescriptfile[type-otf] % being default, I could even miss this declaration sure, as that one is already part of the load-set > \setupbodyfont[pagella,10pt] > > \definefont [WonderFont] [BoldItalic sa 4.8] you probably want features enables, so "*default" \definefont [WonderFont] [BoldItalic*default sa 4.8] > \starttext > {\WonderFont The Big Title} > \input aesop-de > \stoptext > > I do get one consistant error (the "5pt" can vary depending on the size I give in "setupbodyfont"): > > {/Users/martin/contextMini/tex/texmf-context/fonts/map/pdftex/context/mkiv-px.map} > virtual math> the mapping is incomplete for 'pxmath' at 5pt harmless: it means that the math virtual font vector is not yet completely defined, and the message is only given once per set (i.e. pxmath) so in this case that happens to be the 5pt version (small sizes are defined as part of math setup) > Though, the document looks fine. Does the error hint I am missing something? What is "good practice" in Luatex/MKIV to access the desired fonts? using \definefont as you do is ok > > My questions: > > - when do I need to use the multiple point sizes at all in a Luatex/MKIV environment? if you want an adaptive situation, so, in a title where you have only text, it' ok to use \definefont; when you expect things like math, smaller or larger sizes and style switches, you can best use a bodyfont switch > - when would I need to provide that information in typescript files I need to create? (simplefonts is very slow to load fonts with phonetic symbols) depends .. wolfgang might know the answer Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________