ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: rscale in latest beta
Date: Sun, 10 May 2009 23:17:42 +0200	[thread overview]
Message-ID: <ADDB6D43-BE52-4290-AA63-3FF7CD93F838@uni-bonn.de> (raw)
In-Reply-To: <4A072D25.9080408@wxs.nl>


On May 10, 2009, at 9:38 PM, Hans Hagen wrote:

> how do you use rscale?
>
> \definetypeface [xxxx] [rm] [serif] [times]     [default]
> \definetypeface [xxxx] [ss] [sans]  [helvetica] [default] [rscale=5]
>
> \starttext
> \setupbodyfont[xxxx] \rm test \ss test
> \stoptext
>
> works ok

I think I have found the problem and a test file: the problem occurs  
when I define two fonts with different rscales. In this case, only the  
last defined rscale is taken into account, the other one is discarded.  
Here's the file:

\usetypescript[times]
\setupbodyfont[times,12pt]

\definetypeface [one] [rm] [serif] [palatino]   [default] [rscale=2]
\definetypeface [two] [rm] [serif] [schoolbook] [default] [rscale=0.5]

\starttext

Hello world! \switchtobodyfont[one] One \switchtobodyfont[two] Two

\stoptext

If you switch the two \definetypeface lines, you'll see what I mean.  
And since my module defines both a font "greek" and "altgreek," each  
with its own rscale, that's why I was seeing it in my files and  
couldn't reproduce the error at first.

Not easy to find...

All best

Thomas
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      reply	other threads:[~2009-05-10 21:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-09 11:51 Thomas A. Schmitz
2009-05-09 12:52 ` Hans Hagen
2009-05-09 13:05   ` Thomas A. Schmitz
2009-05-10 15:58     ` Thomas A. Schmitz
2009-05-10 16:02       ` Hans Hagen
2009-05-10 19:38       ` Hans Hagen
2009-05-10 21:17         ` Thomas A. Schmitz [this message]

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=ADDB6D43-BE52-4290-AA63-3FF7CD93F838@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --cc=ntg-context@ntg.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).