comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: symbol font not expoting correctly to EPS from iplot in OSX
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: symbol font not expoting correctly to EPS from iplot in OSX [message #71272] Thu, 10 June 2010 07:58 Go to next message
Luis Alonso is currently offline  Luis Alonso
Messages: 27
Registered: February 2000
Junior Member
I've found in some forum a similar problem, in this case between
OpenOffice for Linux and OSX.
http://user.services.openoffice.org/en/forum/viewtopic.php?f =17&t=13926

It seems the problem comes from a system font called Symbol, which is
different in windows/linux and osx. They both contain greek alphabet,
but differently coded.

They suggest to replace the OSX Symbol font with the MS one. But i
would not be very happy with this solution as the rest of mac software
that make use of it will look like crap.

Some one out there has any idea? meanwhile i'll ask Apple Help Desk...

Greetings,

Luis
Re: symbol font not expoting correctly to EPS from iplot in OSX [message #71274 is a reply to message #71272] Thu, 10 June 2010 07:32 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Luis Alonso writes:

> The case is that iplot uses TrueType by default, and PS uses TrueType
> too, it should export just fine. And in fact it does, in Linux and
> WinXP, but not on my iMac OSX10.6 (in fact it used to do it just fine
> with OSX10.5). I've also tried in a colleague's MacBookPro and it
> happens to her too.

Yes, I answered too soon. Sorry. I'm teaching an IDL
class this week with several Macs in it. This is not
the only thing on Macs that is "strange". :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: symbol font not expoting correctly to EPS from iplot in OSX [message #71276 is a reply to message #71274] Thu, 10 June 2010 07:19 Go to previous messageGo to next message
Luis Alonso is currently offline  Luis Alonso
Messages: 27
Registered: February 2000
Junior Member
On 9 jun, 13:08, David Fanning <n...@dfanning.com> wrote:
> Luis Alonso writes:
>> i'm generating a bunch of graphs in which the title includes greek
>> symbols (using the !9 + !X way).
>> They show correctly, but when i export to EPS in vector format the
>> greek symbols appear empty. However, if i open the file with inkscape
>> (a vector illustration editing program) i can select and change the
>> type and the text is there.
>
>> This behavior seems to happen only under OSX (my version is Snow
>> Leopard), it also happens with different versions of IDL (i've tryed
>> 6.3 and 7.0).
>
>> My guess is that there is some kind of font conflict, but don't know
>> how to solve it.
>
>> Any hints?
>
> Not only is it different fonts, but it is different ways
> of expressing the same symbol in those fonts. Here is an
> article that explains this is some detail:
>
>   http://www.dfanning.com/ps_tips/greeksym.html
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Hi David,
thanks for the answer, although i had already checked there (yours is
mostly the first place i always check to solve my idl doubts). However
this time it is not the case, i already use the !9 + !X embedded
formating code, or !M for just one character without trouble on
screen.
The case is that iplot uses TrueType by default, and PS uses TrueType
too, it should export just fine. And in fact it does, in Linux and
WinXP, but not on my iMac OSX10.6 (in fact it used to do it just fine
with OSX10.5). I've also tried in a colleague's MacBookPro and it
happens to her too.

Hope to get some fix soon, otherwise i'll have to use WinXP to
generate the graphs, and i'd hate that.

With respect to pfp's answer. I was not aware of the isave function in
IDL 7.1, since we just have 6.5 and 7.0 versions... so my question was
addressed to the misterious way of programmatically export to EPS.
However, i've already found someone has written such a function:
http://www.ppenteado.net/idl/pp_itool_save-code.html

Thanks again
Re: symbol font not expoting correctly to EPS from iplot in OSX [message #71284 is a reply to message #71276] Wed, 09 June 2010 10:09 Go to previous messageGo to next message
pfp is currently offline  pfp
Messages: 12
Registered: July 2009
Junior Member
On Jun 9, 7:34 am, Luis Alonso <lalonso...@gmail.com> wrote:
> by the way, I'd also like to know how can i programmatically export
> the iplot to EPS in VECTOR form. I just found how to do it in bitmap
> (which incomprehensibly is the default format).

You can change the mode with the keyword graphics_format to isave (1
is vector, 0 is bitmap).

Or you can change the default, going into an iTool's File menu, then
Preferences->Settings->File Writers->Encapsulated Postscript.
Re: symbol font not expoting correctly to EPS from iplot in OSX [message #71293 is a reply to message #71284] Wed, 09 June 2010 04:08 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Luis Alonso writes:

> i'm generating a bunch of graphs in which the title includes greek
> symbols (using the !9 + !X way).
> They show correctly, but when i export to EPS in vector format the
> greek symbols appear empty. However, if i open the file with inkscape
> (a vector illustration editing program) i can select and change the
> type and the text is there.
>
> This behavior seems to happen only under OSX (my version is Snow
> Leopard), it also happens with different versions of IDL (i've tryed
> 6.3 and 7.0).
>
> My guess is that there is some kind of font conflict, but don't know
> how to solve it.
>
> Any hints?

Not only is it different fonts, but it is different ways
of expressing the same symbol in those fonts. Here is an
article that explains this is some detail:

http://www.dfanning.com/ps_tips/greeksym.html

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: symbol font not expoting correctly to EPS from iplot in OSX [message #71358 is a reply to message #71272] Fri, 11 June 2010 09:29 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Luis Alonso writes:

> 've found in some forum a similar problem, in this case between
> OpenOffice for Linux and OSX.
> http://user.services.openoffice.org/en/forum/viewtopic.php?f =17&t=13926
>
> It seems the problem comes from a system font called Symbol, which is
> different in windows/linux and osx. They both contain greek alphabet,
> but differently coded.
>
> They suggest to replace the OSX Symbol font with the MS one. But i
> would not be very happy with this solution as the rest of mac software
> that make use of it will look like crap.
>
> Some one out there has any idea? meanwhile i'll ask Apple Help Desk...

I don't have a Mac, but if someone wanted to help
me out, I've put a new version of my Greek program
here:

http://www.dfanning.com/misc/greek.pro

If you set the UNICODE keyword, the program will now
return the unicode value for the Greek letter used in
the Apple Symbol font distributed with MacOSX 10.1
and higher. This *should* allow Macs to produce
PostScript output with Greek symbols correctly.

IDL> XYOuts, 0.5, 0.5, /Normal, Align=0.5, $
'Greek Letter Zeta ' + Greek('Zeta', /UNICODE), Font=1

Thanks,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Map projection in ENVI
Next Topic: K means clustering

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 12:48:47 PDT 2025

Total time taken to generate the page: 0.00668 seconds