ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: Re: Setting the size of \small
Date: Fri, 21 Oct 2022 18:23:21 +0200	[thread overview]
Message-ID: <17050ef3-2719-9261-c595-26346b7abeb6@freedom.nl> (raw)
In-Reply-To: <878rlaayp5.fsf@vuxu.org>

On 10/21/2022 12:59 AM, Leah Neukirchen via ntg-context wrote:
> Hi,
> 
> playing around with \definebodyfontenvironment with latest LMTX,
> I found this possibly buggy behavior:
> 
> \definebodyfontenvironment[12pt][small=6pt] % x=6pt works here
> \setupbodyfont[12pt]
> \starttext
> normal {\tx tx} {\small small}
> \stoptext
> 
> With \definebodyfontenvironment[12pt][x=6pt] I can resize \tx fine,
> but for \small it doesn't work.
it has to do with the fact that we have font clases and some parameters 
are bound to it.

\setupbodyfontenvironment
   [pagella]
   [12pt]
   [x=4pt,
    small=4pt]

\setupbodyfont[pagella,12pt]

\starttext
     normal {\tx tx} {\small small}
\stoptext

that will work. You can say \fontclass to see what you got after a 
\setupbodyfont.

I'll add

\setupbodyfontenvironment
   [all]
   [12pt]
   [x=4pt,
    small=4pt]

as option (assuming we have no performance hit).

x xx      : dynamic
small big : more static (trigger some definitions)

when we decide to go 'compact fonts' we can review this. We can then 
also decide to get rid of the old design size subsystem (only lm uses it 
unless one does 'modern' and there are other ways.)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2022-10-21 16:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-20 22:59 Leah Neukirchen via ntg-context
2022-10-21 15:59 ` Pablo Rodriguez via ntg-context
2022-10-21 16:23 ` Hans Hagen via ntg-context [this message]
2022-10-21 16:32   ` Leah Neukirchen via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17050ef3-2719-9261-c595-26346b7abeb6@freedom.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@freedom.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).