ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Christian" <metan0r@gmx.de>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: Simplefonts: Font scaling problem
Date: Sat, 12 Nov 2011 15:48:48 +0100	[thread overview]
Message-ID: <006e01cca14a$3065c6d0$91315470$@gmx.de> (raw)
In-Reply-To: <A619C19C-7D0C-4CB8-A3CB-7D9327FE91C9@googlemail.com>

> >> Good evening!
> >>> I want to scale a font loaded via the simplefonts so sans and serif
> >>> have the same x-height.
> >>> But as soon as I use a font size larger than 12pt, the scaling is
> >>> somehow off or ignored.
> >>> Example:
> >>>
> >>> \usemodule[simplefonts]
> >>> \setupsimplefonts[expansion=quality, protrusion=quality]
> >>> \setmainfont[Times New Roman] \setsansfont[Arial][scale=0.863]
> >>> \starttext \setupbodyfont[6pt] 06pt serif xx{\ss xx sans}\\ %fine
> >>> \setupbodyfont[12pt] 12pt serif xx{\ss xx sans}\\ %fine, too
> >>> \setupbodyfont[14pt] 14pt serif xx{\ss xx sans}\\ %here it starts to
> >>> be off \setupbodyfont[16pt] 16pt serif xx{\ss xx sans}\\ \stoptext
> >
> > Your example is a bit difficult to test here because it's windows-centric, I
> don't have Arial on my system. But by looking at it, you should have
> something like this in your file before setting the fonts:
> >
> > \starttypescript [sans] [default] [size] \definebodyfont [16pt] [ss]
> > [default] \stoptypescript \definebodyfontenvironment[16pt]
> >
> > and so on for other arbitrary sizes. ConTeXt doesn't define complete
> environments for every imaginable size (but I imagine Wolfgang may come
> up with a clever solution within his module).
> 
> A clever solution would take a while because in this case i want to change the
> whole code in rewrite it with all the new mkiv goodies and the spec interface.
> 
> A fast solution is also possible but it won’t be more than a fix.

No need to rush from my part. I have what I need (bodyfont in 11.5pt with a properly scaled sans companion).
I get the rest of the font sizes with \tfa etc. and that keeps the proportions intact.

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

      reply	other threads:[~2011-11-12 14:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-11 17:14 Christian
2011-11-11 17:20 ` Christian
2011-11-12 10:01   ` Thomas A. Schmitz
2011-11-12 14:33     ` Christian
2011-11-12 14:44     ` Wolfgang Schuster
2011-11-12 14:48       ` Christian [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='006e01cca14a$3065c6d0$91315470$@gmx.de' \
    --to=metan0r@gmx.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).