ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* interaction between \tfx and \os (2nd try)
@ 2002-08-21 10:37 Bill McClain
  2002-08-21 14:21 ` Hans Hagen
  2002-08-21 15:43 ` Hans Hagen
  0 siblings, 2 replies; 7+ messages in thread
From: Bill McClain @ 2002-08-21 10:37 UTC (permalink / raw)


I've found a strange interaction between \tfx and \os: when using both
commands in combination the text is smaller than it should be. I believe
the commands were working correctly earlier in the year.

Tested with ver: 2002.7.26. The example output (75k) is at:

    http://home.salamander.com/~wmcclain/example.pdf

The test shows Computer Modern, Sabon and Jenson examples. It is
particularly instructive to look at the Jenson lines.  My Jenson has no
old-style figures and my typescript simply maps [OldStyle] to the same
font file as [Serif]. So regular and \os text should be the same
characters, but when used in combination with \tfx, the \os text is
smaller.

\tfa works as it should, as does setting the font size explicitly with
\switchtobodyfont.

Here is the source:

* * *

\usetypescriptfile[type-sabon]
\usetypescript[Sabon]

\usetypescriptfile[type-jenson]
\usetypescript[Jenson]

\def\Digits{0123456789}

\starttext 
\startlines

% \tfx \os combination text is very small
Computer Modern
normal \Digits\ {\os \Digits} 
tfx {\tfx \Digits\ {\os \Digits}} 

\switchtobodyfont[Sabon]

% \tfx \os combination text is very small
Sabon
normal \Digits\ {\os \Digits} 
tfx {\tfx \Digits\ {\os \Digits}}

\switchtobodyfont[Jenson]

% \os text should be identical to regular, but when 
% in \tfx it is smaller
Jenson
normal \Digits\ {\os \Digits} 
tfx {\tfx \Digits\ {\os \Digits}} (should be same size!)

% \tfa works as it should
Jenson
normal \Digits\ {\os \Digits} 
tfa {\tfa \Digits\ {\os \Digits}}

% setting explicit point size works as it should
Jenson
normal \Digits\ {\os \Digits} 
8pt {\switchtobodyfont[8pt] \Digits\ {\os \Digits}}

\stoplines
\stoptext

* * *

-Bill
--- 
Sattre Press                                      Tales of War
http://sattre-press.com/                       by Lord Dunsany
info@sattre-press.com             http://tow.sattre-press.com/ 


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

* Re: interaction between \tfx and \os (2nd try)
  2002-08-21 10:37 interaction between \tfx and \os (2nd try) Bill McClain
@ 2002-08-21 14:21 ` Hans Hagen
  2002-08-21 15:35   ` Bill McClain
  2002-08-21 15:43 ` Hans Hagen
  1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2002-08-21 14:21 UTC (permalink / raw)
  Cc: context

At 05:37 AM 8/21/2002 -0500, Bill McClain wrote:
>I've found a strange interaction between \tfx and \os: when using both
>commands in combination the text is smaller than it should be. I believe
>the commands were working correctly earlier in the year.
>
>Tested with ver: 2002.7.26. The example output (75k) is at:
>
>     http://home.salamander.com/~wmcclain/example.pdf
>
>The test shows Computer Modern, Sabon and Jenson examples. It is
>particularly instructive to look at the Jenson lines.  My Jenson has no
>old-style figures and my typescript simply maps [OldStyle] to the same
>font file as [Serif]. So regular and \os text should be the same
>characters, but when used in combination with \tfx, the \os text is
>smaller.
>
>\tfa works as it should, as does setting the font size explicitly with
>\switchtobodyfont.

i'll look into it, can you try:

\definefont[os][OldStyle]

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: interaction between \tfx and \os (2nd try)
  2002-08-21 14:21 ` Hans Hagen
@ 2002-08-21 15:35   ` Bill McClain
  2002-08-21 15:47     ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Bill McClain @ 2002-08-21 15:35 UTC (permalink / raw)


On Wed, 21 Aug 2002 16:21:38 +0200
Hans Hagen <pragma@wxs.nl> wrote:

> i'll look into it, can you try:
> 
> \definefont[os][OldStyle]

That makes a difference. The CM and Sabon \tfx \os text is more
reasonably sized and the Jenson example appears to be the same size with
and without \os, which is correct.

There is a side effect: the Jenson \tfa \os combination reduces the text
just slightly (compared to just \tfa), which shouldn't happen.

I don't use \definefont anywhere in my typescripts or jobs. Should I?

-Bill
-- 
Sattre Press                                      Tales of War
http://sattre-press.com/                       by Lord Dunsany
info@sattre-press.com             http://tow.sattre-press.com/ 


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

* Re: interaction between \tfx and \os (2nd try)
  2002-08-21 10:37 interaction between \tfx and \os (2nd try) Bill McClain
  2002-08-21 14:21 ` Hans Hagen
@ 2002-08-21 15:43 ` Hans Hagen
  2002-08-21 18:34   ` Bill McClain
  1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2002-08-21 15:43 UTC (permalink / raw)
  Cc: ntg-context

Hi,

In cont-sys.tex, after \unprotect, add:

\def\@fs@sa
   {\scaledfont\normalizedbodyfontsize  % was \fontbody
    \setsamofontspec}

and also:

\def\dodefinefont[#1][#2][#3]% [name][spec][1.6 | line=10pt | setup_id]
   {\doifinstringelse{ }{#2}
      {\ifthirdargument
         \unexpanded\setvalue{#1}{\redodefinefont{#1}{#2}{#3}}%
       \else
         \unexpanded\setvalue{#1}{\dododefinefont{#1}{#2}}%
       \fi}
      {\definefont[#1][#2 sa *][#3]}}

Please test this extensively, works ok with:

{x123 \os x123} {\tfa x123 \os x123} {x123 \tx x123 \os x123}
\definefontsynonym[OldStyle][Serif]
{x123 \os x123} {\tfa x123 \os x123} {x123 \tx x123 \os x123}

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: interaction between \tfx and \os (2nd try)
  2002-08-21 15:35   ` Bill McClain
@ 2002-08-21 15:47     ` Hans Hagen
  2002-08-21 16:47       ` Bruce D'Arcus
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2002-08-21 15:47 UTC (permalink / raw)
  Cc: context

At 10:35 AM 8/21/2002 -0500, Bill McClain wrote:

>I don't use \definefont anywhere in my typescripts or jobs. Should I?

well, it can be handy in situations like:

\definefont [MyBigTitleFont][Serif sa 5]

and alike; optionally

\definefont [MyFont] [StrangeFontThatDoesNotFitInScheme at 12pt][line=16pt]

(or even:

\startsetups[oeps]
  whatever kind of settings
\stopsetups

\definefont [...] [...] [oeps]

as experimental feature)

You can then pass such fonts as styel option

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: interaction between \tfx and \os (2nd try)
  2002-08-21 15:47     ` Hans Hagen
@ 2002-08-21 16:47       ` Bruce D'Arcus
  0 siblings, 0 replies; 7+ messages in thread
From: Bruce D'Arcus @ 2002-08-21 16:47 UTC (permalink / raw)
  Cc: context

On 8/21/02 11:47 AM, "Hans Hagen" <pragma@wxs.nl> wrote:

> At 10:35 AM 8/21/2002 -0500, Bill McClain wrote:
> 
>> I don't use \definefont anywhere in my typescripts or jobs. Should I?
> 
> well, it can be handy in situations like:
> 
> \definefont [MyBigTitleFont][Serif sa 5]
> 
> and alike; optionally
> 
> \definefont [MyFont] [StrangeFontThatDoesNotFitInScheme at 12pt][line=16pt]

OK, then, to go back to my earlier questions that never got answered:

In the above example "MyFont" is the font synonym (in my case "Footnote"),
and the "Strange...." part is the actual file name for the tfm?

If I want to use the font in a document, then, all I should need to do is to
use a fontswitch command (in this case for footnote numbers) and specify
"Footnote" (or MyFont, or whatever)?

> (or even:
> 
> \startsetups[oeps]
> whatever kind of settings
> \stopsetups

> \definefont [...] [...] [oeps]
> 
> as experimental feature)
> 
> You can then pass such fonts as styel option

Which just makes font switching a little easier?

Bruce


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

* Re: interaction between \tfx and \os (2nd try)
  2002-08-21 15:43 ` Hans Hagen
@ 2002-08-21 18:34   ` Bill McClain
  0 siblings, 0 replies; 7+ messages in thread
From: Bill McClain @ 2002-08-21 18:34 UTC (permalink / raw)
  Cc: ntg-context

On Wed, 21 Aug 2002 17:43:19 +0200
Hans Hagen <pragma@wxs.nl> wrote:

> Please test this extensively, works ok with:
> 
> {x123 \os x123} {\tfa x123 \os x123} {x123 \tx x123 \os x123}
> \definefontsynonym[OldStyle][Serif]
> {x123 \os x123} {\tfa x123 \os x123} {x123 \tx x123 \os x123}

This is not quite right on my system. The original buggy behavior is
restored. Actually, it may be an interaction with my typescripts. \tfx
shrinks the CM text, but does not shrink the Sabon or Jenson text unless
\os is also applied.

The interaction with \tfa I mentioned previously is fixed.

-Bill
-- 
Sattre Press                                      Tales of War
http://sattre-press.com/                       by Lord Dunsany
info@sattre-press.com             http://tow.sattre-press.com/ 


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

end of thread, other threads:[~2002-08-21 18:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-21 10:37 interaction between \tfx and \os (2nd try) Bill McClain
2002-08-21 14:21 ` Hans Hagen
2002-08-21 15:35   ` Bill McClain
2002-08-21 15:47     ` Hans Hagen
2002-08-21 16:47       ` Bruce D'Arcus
2002-08-21 15:43 ` Hans Hagen
2002-08-21 18:34   ` Bill McClain

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