Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Follow-on: StyleForm and font selection

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58947] Re: [mg58914] Follow-on: StyleForm and font selection
  • From: Chris Chiasson <chris.chiasson at gmail.com>
  • Date: Sun, 24 Jul 2005 01:22:08 -0400 (EDT)
  • References: <200507230932.FAA29086@smc.vnet.net>
  • Reply-to: Chris Chiasson <chris.chiasson at gmail.com>
  • Sender: owner-wri-mathgroup at wolfram.com

Assuming you tried to view the EPS in another application and that
application had the wrong font for the text, maybe you should look in
the EPS file to see that the font is specified properly. (this is
similar to how I found out that Mathematica was wrapping text with the
wrong tag in its MathML output) If it is specified properly, maybe the
other application doesn't have access to the font. Another possibility
is that the "text" actually requires box forms to display properly
(things like square roots, fractions, powers, subscripts) and they may
not be well translated to external applications.

ExportString[
  StyleForm[ToString[x^Sqrt[y]],FontFamily\[Rule]"Helvetica"],"EPS"]

Looking at the output of this command, I see some Mathematica font and
Helectiva specified in the output. I also think "No wonder it takes so
freaking long to print stuff."

On 7/23/05, AES <siegman at stanford.edu> wrote:
> As a follow-on to a recent post:
> 
> 1) Suppose I prepare a graphic -- or any Mathematica output -- with an
> Input cell containing
> 
>    StyleForm[ "my text", FontFamily-> "someFont" ]
> 
> with "someFont" being available on my system; and Mathematica doesn't
> give me any error messages about missing fonts or other problems when I
> evaluate that cell; and the resulting Output cell appears OK on screen;
> and I then save that Output cell to a file (on the same system).
> 
> Shouldn't *all* the characters in "my text" then be in "someFont"?
> 
> (Or else an error msg be delivered?  Can I trust StyleForm to do what
> it's told to do?)
> 
> 2)  Should it make *any* difference in the exported file whether I
> accomplish the above using the Edit >> Save Selection As >> EPS menu
> command, or by evaluating an Export[ ] cell in my notebook?
> 
> This is with Mathematica 5.1 on Mac OS 10.3.9.
> 
> 



-- 
Chris Chiasson
http://chrischiasson.com/
1 (810) 265-3161


  • Prev by Date: Re: Re: Mathematica 5.2: The 64-bit and multicore release
  • Next by Date: Re: Empirical CDF
  • Previous by thread: Follow-on: StyleForm and font selection
  • Next by thread: Empirical CDF