From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96584 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: bug in font size switches? Date: Mon, 17 Oct 2016 20:10:28 +0200 Message-ID: <58051414.7020608@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7346548968775012089==" X-Trace: blaine.gmane.org 1476728046 3098 195.159.176.226 (17 Oct 2016 18:14:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Oct 2016 18:14:06 +0000 (UTC) User-Agent: Postbox 5.0.4 (Macintosh/20161007) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 17 20:13:58 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwCQ0-0007DR-Tu for gctc-ntg-context-518@m.gmane.org; Mon, 17 Oct 2016 20:13:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9E5D81AC13; Mon, 17 Oct 2016 20:10:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gZCwCRoV25qX; Mon, 17 Oct 2016 20:10:44 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 44BC51AC38; Mon, 17 Oct 2016 20:10:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 45BC01ABDC for ; Mon, 17 Oct 2016 20:10:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OPiqoEOgHNPz for ; Mon, 17 Oct 2016 20:10:42 +0200 (CEST) Original-Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id BC6991A9D4 for ; Mon, 17 Oct 2016 20:10:32 +0200 (CEST) Original-Received: by mail-lf0-f49.google.com with SMTP id b75so300893462lfg.3 for ; Mon, 17 Oct 2016 11:10:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=YxIx0qVBs/qQMJJ/u+xA7ntdgzHv0RKXJ2ImMW3uhEI=; b=d/FRQXxD34QS4cqhRJgCkMGkwpP9c3G9M/76EuHRXw3ezyKwUt39Yc5b9h7pfIQaCk 4dE93s0lWHmcFEqCX7MNGvaTvOQ4wpctNvZ/G84sYGquuPoDUcsBSiHgvgrg8CNbRaSV bj6be378BbidR9n66A4r9jcYtEeHdFitOxxofVBsDKDd7lCZ8yafcoa7nW0dSgkINKJA VrJCYhMb8tEGaLaPyup4R6XT7OfAt/6wb2IbyKQPxS/tfT7wiP5U9qarnoGicUs3lL7e 8p1qgSjD55B0xk0K44Hu6HBcMn/ZcMlKPjHN9dXpTtzXf6pvyTxgbYPSuU3531adx93R 9Q7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=YxIx0qVBs/qQMJJ/u+xA7ntdgzHv0RKXJ2ImMW3uhEI=; b=ICJA6dMTba2X2G7xmYlXxIB4hN7+lwwJhGIjETxaK8bktCkc6uu79G/VS3iEr3Ydcl xKyJoBVrPuswK88Wg78LlhWXLW5j/gLVEKYOZLsh0xoRztJec1OEWGREQr2iG/rckjZq OreGZ6GKp3jmTapAjlcDh2dIpjITcrjcfHqn2zGqjxUh8iCoHGNT577QJGzP9JGstfbm 41hriHjlw0sZKqqFpls5BAM56NbezUn5YKdNuL0JQz/Y+wopX7xZU76NxyLmqRKVmaTU /NatyLEhr5aAMuoyjRAP5k+AXc/5tWH84EiD6tuPxkykvstkaP2zT5qY3sNE7pUiJ1JX t5hw== X-Gm-Message-State: AA6/9Rnsh49Ik24hj38AEf2skBf1OZWnCv4ixamLsG5bIgW58kiMa+t4llWf01RTzQRxJA== X-Received: by 10.25.39.67 with SMTP id n64mr16739162lfn.80.1476727831855; Mon, 17 Oct 2016 11:10:31 -0700 (PDT) Original-Received: from keima.localdomain (x2f24806.dyn.telefonica.de. [2.242.72.6]) by smtp.gmail.com with ESMTPSA id 25sm8198521ljb.36.2016.10.17.11.10.30 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Oct 2016 11:10:31 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:96584 Archived-At: This is a multi-part message in MIME format. --===============7346548968775012089== Content-Type: multipart/alternative; boundary="------------010508090307000901070809" This is a multi-part message in MIME format. --------------010508090307000901070809 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Pablo Rodriguez > 17. Oktober 2016 um 20:07 > Dear list, > > from the previous message from Csikos, I have generated the following > sample: > > \setupbodyfontenvironment[default][a=5, x=8, xx=6] > \starttext > Default {\tfa Larger} {\tfx Smaller1} {\tfxx Smaller1} \\ > Default \tfa Larger \tfx Smaller2 \tfxx Smaller2 > \stoptext > > I can set a different value for a, but not for x or xx. The values for x > and xx seem to be hardcoded. > > If this isn’t a bug, what am I missing here? The default sizes (12pt, 11pt etc.) have fixed values for x and xx, you can see them in font-pre.mkiv: \definebodyfontenvironment [\!!twelvepoint] [ \s!text=\!!twelvepoint, \s!script=\!!ninepoint, \s!scriptscript=\!!sevenpoint, \s!x=\!!tenpoint, \s!xx=\!!eightpoint, \v!big=\!!fourteenpointfour, \v!small=\!!tenpoint] Wolfgang --------------010508090307000901070809 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
17. Oktober 2016 um 20:07
Dear list,

from the previous message from Csikos, I have generated the following
sample:

\setupbodyfontenvironment[default][a=5, x=8, xx=6]
\starttext
Default {\tfa Larger} {\tfx Smaller1} {\tfxx Smaller1} \\
Default \tfa Larger \tfx Smaller2 \tfxx Smaller2
\stoptext

I can set a different value for a, but not for x or xx. The values for x
and xx seem to be hardcoded.

If this isn’t a bug, what am I missing here?
The default sizes (12pt, 11pt etc.) have fixed values for x and xx, you can see them in font-pre.mkiv:

\definebodyfontenvironment
  [\!!twelvepoint]
  [        \s!text=\!!twelvepoint,
         \s!script=\!!ninepoint,
   \s!scriptscript=\!!sevenpoint,
              \s!x=\!!tenpoint,
             \s!xx=\!!eightpoint,
            \v!big=\!!fourteenpointfour,
          \v!small=\!!tenpoint]

Wolfgang
--------------010508090307000901070809-- --===============7346548968775012089== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============7346548968775012089==--