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

Home » Public Forums » archive » Re: Text Formatting with TexToIDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Text Formatting with TexToIDL [message #47569 is a reply to message #47568] Wed, 15 February 2006 15:29 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Craig Markwardt <craigmnet@REMOVEcow.physics.wisc.edu> writes:
> David, the problem is that the font sets and character encodings for
> the TrueType and PostScript fonts are totally different than the
> direct graphics Hershey fonts. textoidl() only knows about the
> Hershey fonts. Somebody would have to re-write a part of textoidl()
> to handle the new encodings.

But here's an interesting tidbit. The PS and TrueType symbol fonts
are close enough that one can switch to Postscript mode and get the
desired effect:

set_plot, 'ps'
str = textoidl(' \lambda_{1} (nm)', font=0)
set_plot, 'x'
text = obj_new('idlgrtext', str, ENABLE_FORMATTING=1)
xobjview, text

Major-kludge, but it suggests that a modification to textoidl() would
be fairly straightforward.

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help plotting a 3D Carioid...
Next Topic: Re: Newbie to satellite data and IDL

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

Current Time: Sun Oct 12 13:18:31 PDT 2025

Total time taken to generate the page: 0.32368 seconds