ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mikael P. Sundqvist" <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Two questions on \definefallbackfamily
Date: Mon, 28 Apr 2014 14:38:38 +0200	[thread overview]
Message-ID: <CAHy-LL9ft+c2LYJ2+tegeN1sADr44v8PYEdzzOvh-nJZjxgPXg@mail.gmail.com> (raw)
In-Reply-To: <3DC0E108-C0EE-4181-B9FC-5E3A4C39D83C@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 4279 bytes --]

On Sun, Apr 27, 2014 at 4:58 PM, Wolfgang Schuster
<schuster.wolfgang@gmail.com> wrote:
>
> 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
> ___________________________________________________________________________________

Thank you very much for your answer, Wolfgang. I can't get it to work
with iwona being substituted.

With the example file below all math is in iwona (see the attached
file). What am I doing wrong?

Best regards, Mikael

PS: I know I first asked to have Garamond instead of iwona, but this
was out of laziness. I'd rather try the look of FrutigerLTstd and
iwona. If someone has a suggestion of a math font that could fit to
Frutiger, I am all ears (this is a font used by the university).

%%% Example file
\definefontfamily [lundfaces] [rm] [Adobe Garamond Pro][opticalsize=yes]
\definefontfamily [lundfaces] [ss] [FrutigerLTstd][opticalsize=yes]

\definefallbackfamily [lundfaces] [math] [FrutigerLTstd] [math:uppercasenormal]
\definefallbackfamily [lundfaces] [math] [FrutigerLTstd] [math:uppercaseitalic]
\definefallbackfamily [lundfaces] [math] [FrutigerLTstd]
[preset=math:lowercasenormal,scale=1.25]
\definefallbackfamily [lundfaces] [math] [FrutigerLTstd] [math:lowercaseitalic]
\definefallbackfamily [lundfaces] [math] [FrutigerLTstd] [math:digitsnormal]
\definetypeface [lundfaces] [mm] [math] [iwona] [default]

\setupbodyfont[lundfaces,ss]

\starttext
Hello {\em abc} $abc$ $\alpha\beta\gamma$
\startformula
\int_a^b  f(x)\, dx
\stopformula
\stoptext
%%% Stop example file

[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 38830 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2014-04-28 12:38 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
2014-04-28 12:38   ` Mikael P. Sundqvist [this message]
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=CAHy-LL9ft+c2LYJ2+tegeN1sADr44v8PYEdzzOvh-nJZjxgPXg@mail.gmail.com \
    --to=mickep@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).