From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62220 Path: news.gmane.org!not-for-mail From: Florian Wobbe Newsgroups: gmane.comp.tex.context Subject: Re: font sizes (again) Date: Fri, 01 Oct 2010 11:55:26 +0200 Message-ID: <9A9FA261-F8FF-417B-970C-2F016B3F3586@awi.de> References: <24780A58-38B8-489B-971A-3E3FD61BA5BD@awi.de> 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 1285926945 7539 80.91.229.12 (1 Oct 2010 09:55:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2010 09:55:45 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 01 11:55:44 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 1P1cL9-0000DR-6j for gctc-ntg-context-518@m.gmane.org; Fri, 01 Oct 2010 11:55:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 21ABECA68C; Fri, 1 Oct 2010 11:55:40 +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 IC2jyBJcIj1r; Fri, 1 Oct 2010 11:55:37 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1D057CA68F; Fri, 1 Oct 2010 11:55:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 61B47CA68F for ; Fri, 1 Oct 2010 11:55:36 +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 QbVsCvwo9v9u for ; Fri, 1 Oct 2010 11:55:34 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id F2ED8CA68C for ; Fri, 1 Oct 2010 11:55:33 +0200 (CEST) Original-Received: from mails3.awi.de (mails3.AWI.DE [134.1.2.14]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o919tWhj000576 for ; Fri, 1 Oct 2010 11:55:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by mails3.awi.de (Postfix) with ESMTP id 5CA1CA7E17 for ; Fri, 1 Oct 2010 11:55:32 +0200 (MEST) X-Virus-Scanned: amavisd-new at awi.de Original-Received: from localhost ([127.0.0.1]) by localhost (mails3.awi.de [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id lBObPm4BvMEg for ; Fri, 1 Oct 2010 11:55:26 +0200 (MEST) Original-Received: from msg.awi.de (msg.AWI.DE [134.1.3.16]) by mails3.awi.de (Postfix) with ESMTP id 84C9DA7E0A for ; Fri, 1 Oct 2010 11:55:26 +0200 (MEST) Original-Received: from vpn-awinet-16-18.awi.de ([unknown] [172.28.16.18]) by msg.awi.de (Sun Java(tm) System Messaging Server 7u3-12.01 64bit (built Oct 15 2009)) with ESMTPSA id <0L9L000ISVKEUR80@msg.awi.de> for ntg-context@ntg.nl; Fri, 01 Oct 2010 11:55:26 +0200 (MEST) In-reply-to: X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=134.1.2.14; country=DE; region=03; city=Bremerhaven; latitude=53.5500; longitude=8.5833; http://maps.google.com/maps?q=53.5500,8.5833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05DdlTxtc - 82c1c5ba450b - 20101001 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 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:62220 Archived-At: On Sep 30, 2010, at 15:27 , Mojca Miklavec wrote: > On Wed, Sep 29, 2010 at 14:30, Florian Wobbe wrote: >> Hi, >> >> please regard this minimal example: >> >> \setupbodyfont[10pt] >> \starttext >> \title{Title} >> \section{Section} >> {\switchtobodyfont[big] big} >> {\switchtobodyfont[small] small} >> {\tfxx tfxx} >> {\tfx tfx} >> {\tfa tfa} >> {\tfb tfb} >> {\tfc tfc} >> {\tfd tfd} >> \stoptext >> >> Latin Modern Regular is available in different optical sizes - lmroman{5,6,7,8,9,10,12,17}-regular.otf - and as context is aware of these sizes (configured in typescripts) I wonder why they are not correctly assigned. This table indicates what happens instead: >> >> \tfxx 6pt -> lmroman6 (as expected) >> \tfx 8pt -> lmroman8 (as expected) >> \tftf 10pt -> lmroman10 (as expected) >> \tfa 12.0pt -> lmroman10 (instead of lmroman12) >> \tfb 14.4pt -> lmroman10 (instead of lmroman12) >> \tfc 17.3pt -> lmroman10 (instead of lmroman17) >> \tfd 20.7pt -> lmroman10 (instead of lmroman17) >> >> \switchtobodyfont[small] 8pt -> lmroman8 (as expected) >> \switchtobodyfont[big] 12pt -> lmroman12 (as expected) >> >> \title 17.3pt -> lmroman10 (instead of lmroman17) >> \section 12pt -> lmroman10 (instead of lmroman12) >> >> The commands \title and \section and the font size switches \tfa, b, c, and d scale the font to the correct size, however, the wrong optical size is assigned. Note, this is not the case for \tfx, xx and \switchtobodyfont. Tested in MKIV and MKII (current beta). >> >> Is this a bug or a feature? > > Most likely the first, however I never really understood how this > magic is configured in ConTeXt. > > The relevant files are > tex/context/base/type-siz.mkiv (as well as mkii) > I guess that the contents more or less agree with your observations > (there is no 17pt font defined for big, however there are small fonts > defined for x and xx), but I would have no idea how to fix anything. > > Mojca Thanks, you are right, the biggest defined lm font is lmroman12. But that's beside the point. The typescripts are configured correctly. BTW, you get the same problem with Wolfgang's third/typescripts/type-optical.tex, which defines four optical sizes of the Adobe Pro fonts. Like Mojca, I don't know about the context magic innards and how to fix this either. Is there a way for interactive line tracing in luatex, similar to e.g. bash -x? Florian ___________________________________________________________________________________ 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 ___________________________________________________________________________________