Re: italic greek? [message #82414] |
Tue, 11 December 2012 22:00 |
chris_torrence@NOSPAM
Messages: 528 Registered: March 2007
|
Senior Member |
|
|
Correct me if I'm wrong, but aren't the lowercase Greek letters all "italic" in both the Hershey and Truetype fonts that ship with IDL?
So couldn't you just use the !M to switch to the symbol font, then use "q" to insert the theta?
In new graphics, this would look like either one of the following:
p = plot(/test, title='Abc $\theta$ def')
p = plot(/test, title='Abc !Mq def')
The syntax in either DG or CG would be similar.
Cheers,
Chris
ExelisVIS
|
|
|
Re: italic greek? [message #82429 is a reply to message #82414] |
Tue, 11 December 2012 10:13  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
>
> sdjohnson.mail@gmail.com writes:
>
>> I am trying to make a plot with an italicized greek symbol (theta) using the various cg commands, but have not found a way of doing so. Does anyone know how?
>
> I think you are probably going to have to find
> an italicized Greek font somewhere...
You can obviously make italic versions of Postscript fonts,
including the Symbol font, which is used to create Greek
characters:
Set_Plot, 'PS'
Device, /Italic, /Symbol
But, there is no way in IDL that I know of to switch
from an non-italic to italic and back to non-italic
font inside a text string. So, if you wanted an italic
theta and non-italic text otherwise, you would have to
divide the text string into italic and non-italic parts
and write them separately.
Seems like a lot of work for very little benefit
to me. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: italic greek? [message #82430 is a reply to message #82429] |
Tue, 11 December 2012 10:00  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
sdjohnson.mail@gmail.com writes:
> I am trying to make a plot with an italicized greek symbol (theta) using the various cg commands, but have not found a way of doing so. Does anyone know how?
I think you are probably going to have to find
an italicized Greek font somewhere...
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|