ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bug in font size switches?
@ 2016-10-17 18:07 Pablo Rodriguez
  2016-10-17 18:10 ` Wolfgang Schuster
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Pablo Rodriguez @ 2016-10-17 18:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bug in font size switches?
  2016-10-17 18:07 bug in font size switches? Pablo Rodriguez
@ 2016-10-17 18:10 ` Wolfgang Schuster
  2016-10-17 18:24   ` Pablo Rodriguez
  2016-10-17 18:33 ` Hans Hagen
  2016-10-20 16:51 ` Csikos Bela
  2 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2016-10-17 18:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 925 bytes --]

> Pablo Rodriguez <mailto:oinos@gmx.es>
> 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

[-- Attachment #1.2: Type: text/html, Size: 2042 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bug in font size switches?
  2016-10-17 18:10 ` Wolfgang Schuster
@ 2016-10-17 18:24   ` Pablo Rodriguez
  2016-10-17 18:30     ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Pablo Rodriguez @ 2016-10-17 18:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10/17/2016 08:10 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 17. Oktober 2016 um 20:07
>> [...]
>> 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,

many thanks for your help. I was reading that file.

I know that a simple workaround would be to set the font size another
value, but why do x and xx fixed values and not a, b, c and d?

I mean (I’m only trying to understand), why are only those two values
(form the letter series) fixed?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bug in font size switches?
  2016-10-17 18:24   ` Pablo Rodriguez
@ 2016-10-17 18:30     ` Hans Hagen
  2016-10-17 19:47       ` Pablo Rodriguez
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2016-10-17 18:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10/17/2016 8:24 PM, Pablo Rodriguez wrote:
> On 10/17/2016 08:10 PM, Wolfgang Schuster wrote:
>>> Pablo Rodriguez 17. Oktober 2016 um 20:07
>>> [...]
>>> 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,
>
> many thanks for your help. I was reading that file.
>
> I know that a simple workaround would be to set the font size another
> value, but why do x and xx fixed values and not a, b, c and d?
>
> I mean (I’m only trying to understand), why are only those two values
> (form the letter series) fixed?

because they are the text counterparts of the smaller math sizes (those 
are fixed too) ... think of \high and \low usage

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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bug in font size switches?
  2016-10-17 18:07 bug in font size switches? Pablo Rodriguez
  2016-10-17 18:10 ` Wolfgang Schuster
@ 2016-10-17 18:33 ` Hans Hagen
  2016-10-17 19:54   ` Pablo Rodriguez
  2016-10-20 16:51 ` Csikos Bela
  2 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2016-10-17 18:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10/17/2016 8:07 PM, Pablo Rodriguez wrote:
> 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?

that the x/xx sized are automatic adaptions of tf bf sl it ..., so: \bf 
\tx is the same as \bfx:

     test {\bf \tx test} test {\bfx test}

but using \tx is more flexible (as it adapts)

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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bug in font size switches?
  2016-10-17 18:30     ` Hans Hagen
@ 2016-10-17 19:47       ` Pablo Rodriguez
  0 siblings, 0 replies; 8+ messages in thread
From: Pablo Rodriguez @ 2016-10-17 19:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10/17/2016 08:30 PM, Hans Hagen wrote:
> On 10/17/2016 8:24 PM, Pablo Rodriguez wrote:
>> [...]
>> I know that a simple workaround would be to set the font size another
>> value, but why do x and xx fixed values and not a, b, c and d?
>>
>> I mean (I’m only trying to understand), why are only those two values
>> (form the letter series) fixed?
> 
> because they are the text counterparts of the smaller math sizes (those 
> are fixed too) ... think of \high and \low usage

Many thanks for your reply, Hans.

Now I understand why it happens.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bug in font size switches?
  2016-10-17 18:33 ` Hans Hagen
@ 2016-10-17 19:54   ` Pablo Rodriguez
  0 siblings, 0 replies; 8+ messages in thread
From: Pablo Rodriguez @ 2016-10-17 19:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10/17/2016 08:33 PM, Hans Hagen wrote:
>> [...]
>> If this isn’t a bug, what am I missing here?
> 
> that the x/xx sized are automatic adaptions of tf bf sl it ..., so: \bf 
> \tx is the same as \bfx:
> 
>      test {\bf \tx test} test {\bfx test}
> 
> but using \tx is more flexible (as it adapts)

Many thanks for the tip, Hans.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bug in font size switches?
  2016-10-17 18:07 bug in font size switches? Pablo Rodriguez
  2016-10-17 18:10 ` Wolfgang Schuster
  2016-10-17 18:33 ` Hans Hagen
@ 2016-10-20 16:51 ` Csikos Bela
  2 siblings, 0 replies; 8+ messages in thread
From: Csikos Bela @ 2016-10-20 16:51 UTC (permalink / raw)
  To: ntg-context

Pablo Rodriguez írta:
>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.

Just for clarity, my problem was not that I couldn't change the value of x and xx.
My problem was that \tfx and \tfxx behave differently than \tfa \tfb etc.
I expected that \tfx and \tfxx change the font size to x and xx size compared to
the default/normal size and not compared to the currently used/environment
font size. According to the reference manual that would be the expected behavior. 
The reference manual [pages 106-107 (108-109 pdf pages)] writes:

"Besides these two-letter commands, there is a series of font selector commands with a
size suffix attached. Some examples of that are:
    \tfx \bfx \slx \itx
    \tfa \tfb \tfc \tfd \tfxx
The a suffix selects a somewhat larger font size than the default. Each of the ordered
alphabetic suffixes a, b, … select a somewhat larger actual font than the previous suffix. The x and xx suffixes select smaller and yet smaller versions. Note that these commands select font sizes relative to the default, not relative to whatever font size is currently in effect."

I don't see how the fixed values for x and xx is related to this.

Best regards,

bcsikos

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-10-20 16:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-17 18:07 bug in font size switches? Pablo Rodriguez
2016-10-17 18:10 ` Wolfgang Schuster
2016-10-17 18:24   ` Pablo Rodriguez
2016-10-17 18:30     ` Hans Hagen
2016-10-17 19:47       ` Pablo Rodriguez
2016-10-17 18:33 ` Hans Hagen
2016-10-17 19:54   ` Pablo Rodriguez
2016-10-20 16:51 ` Csikos Bela

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).