ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Two questions on \definefallbackfamily
Date: Sun, 27 Apr 2014 16:58:28 +0200	[thread overview]
Message-ID: <3DC0E108-C0EE-4181-B9FC-5E3A4C39D83C@gmail.com> (raw)
In-Reply-To: <CAHy-LL-70VGw1CHFP+LTjYF6x+Wc8sEk11d1z0o7hOKurdYjvw@mail.gmail.com>


Am 25.04.2014 um 21:56 schrieb Mikael P. Sundqvist <mickep@gmail.com>:

> Hi!
> 
> 1) If i write
> %%%
> \definefontfamily [luface] [rm] [Adobe Garamond Pro][opticalsize=yes]
> \definefontfamily [luface] [ss] [FrutigerLTstd][opticalsize=yes]
> \definefallbackfamily [luface] [math] [Adobe Garamond Pro]
> [math:uppercasenormal]
> \definefallbackfamily [luface] [math] [Adobe Garamond Pro]
> [math:uppercaseitalic]
> \definefallbackfamily [luface] [math] [Adobe Garamond Pro]
> [math:lowercasenormal]
> \definefallbackfamily [luface] [math] [Adobe Garamond Pro]
> [math:lowercaseitalic]
> \definefallbackfamily [luface] [math] [Adobe Garamond Pro] [math:digitsnormal]
> \definefontfamily [luface] [math] [Tex Gyre Pagella Math]
> \definebodyfontenvironment[18pt]
> \setupbodyfont[luface,18pt]
> %%%
> 
> it works well. What if I want to change TeX Gyre Pagella Math to
> Iwona? It turns out I cannot just change it to "Iwona", "iwona",
> "Iwona Math", ... Other fonts seem to work, but Iwona no?

When you set a math font the command looks first if there exists
a font with the requested font and when this isn’t the case it tries
to load a typescript with the given name.

The problem with Iwona is that there is a font with this name
in TeXLive or the context suite and \definefontfamily therefore
tries to load the font. Even though this isn’t enough because
you need a font in the opentype math format to use it as math
font and this isn’t the case for Iwona.

What you can do is to use the \definetypeface command to load
the iwona math font:

    \definetypeface [luface] [mm] [math] [iwona] [default]

> 2) Say that I change the third last line above into
> 
> \definefontfamily [luface] [math] [Tex Gyre Pagella Math][scale=0.8]
> 
> to make the fonts fit better in size. Then the Adobe Garamond Pro in
> math mode also scales with the factor 0.8, which looks bad. Is there a
> way to scale only the TeX Gyre Pagella Math? Adding scale=1 to the
> \definefallbackfamily commands does not seem to change anything.


You have to use a value larger than 1 because size is relative to the size of the math font.

  \definefallbackfamily [luface] [math] [Adobe Garamond Pro] [preset=math:lowercasenormal,scale=1.25]

Wolfgang
___________________________________________________________________________________
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:[~2014-04-27 14:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-25 19:56 Mikael P. Sundqvist
2014-04-27 14:58 ` Wolfgang Schuster [this message]
2014-04-28 12:38   ` Mikael P. Sundqvist
2014-04-28 13:02     ` Wolfgang Schuster
2014-04-28 13:32       ` Mikael P. Sundqvist

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=3DC0E108-C0EE-4181-B9FC-5E3A4C39D83C@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --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).