ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Math formula deleted: Insufficient symbol fonts
@ 2002-09-04 21:47 Bill McClain
  2002-09-06 10:30 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Bill McClain @ 2002-09-04 21:47 UTC (permalink / raw)


Here is a strange case. Using ConTeXt 2002.7.26, pdfeTeX, Version
3.14159-1.00a-pretest-20010806-2.1.

I have a script which uses Adobe Sabon, but I switch back to CM and use
math mode when I need just a few Greek characters. All was working well
until I started adjusting font size, and then I got:

    ! Math formula deleted: Insufficient symbol fonts.

upon encountering the first math mode usage. Some font sizes work and
some don't:

ok: 10, 10.0, 10.01, 11
no good: 10.1, 10.2, 10.3, 10.4, 10.5

Looks like a fractional font size problem, although I can't explain why
10.01 works, unless it is rounded to a whole point size.

Here is a small script demonstrating the error:

* * *

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

\usetypescript[modern][default]

\setupbodyfont[Sabon]

\def\Greek#1{{\switchtobodyfont[modern]$#1$}}

\starttext 
% ok
\switchtobodyfont[11pt]
Here is an alpha: \Greek{\alpha}.

% ok
\switchtobodyfont[10pt]
Here is a beta: \Greek{\beta}.

% ok
\switchtobodyfont[10.01pt]
Here is a gamma: \Greek{\gamma}.

% no good!
\switchtobodyfont[10.5pt]
Here is a delta: \Greek{\delta}.
\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] 2+ messages in thread

* Re: Math formula deleted: Insufficient symbol fonts
  2002-09-04 21:47 Math formula deleted: Insufficient symbol fonts Bill McClain
@ 2002-09-06 10:30 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2002-09-06 10:30 UTC (permalink / raw)
  Cc: context

At 04:47 PM 9/4/2002 -0500, Bill McClain wrote:
>Here is a strange case. Using ConTeXt 2002.7.26, pdfeTeX, Version
>3.14159-1.00a-pretest-20010806-2.1.
>
>I have a script which uses Adobe Sabon, but I switch back to CM and use
>math mode when I need just a few Greek characters. All was working well
>until I started adjusting font size, and then I got:
>
>     ! Math formula deleted: Insufficient symbol fonts.
>
>upon encountering the first math mode usage. Some font sizes work and
>some don't:
>
>ok: 10, 10.0, 10.01, 11
>no good: 10.1, 10.2, 10.3, 10.4, 10.5
>
>Looks like a fractional font size problem, although I can't explain why
>10.01 works, unless it is rounded to a whole point size.

The problem is that you need to define a bodyfont environment (search for 
that in font-* / type-* files for examples)

by default, context rounds to 1 digit behind the period, so internally 
10.01 == 10 and 10.10 == 10.1 and that size does not hav ethe math preset

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] 2+ messages in thread

end of thread, other threads:[~2002-09-06 10:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-04 21:47 Math formula deleted: Insufficient symbol fonts Bill McClain
2002-09-06 10:30 ` Hans Hagen

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