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 #47570 is a reply to message #47569] Wed, 15 February 2006 15:21 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
David Fanning <davidf@dfanning.com> writes:


> Folks,
>
> Here is a straightforward string using TexToIDL:
>
> IDL> xyouts, 0.5, 0.5, charsize=2.5, align=0.5, /normal, $
> textoidl(' \lambda_{1} (nm)')
> IDL> Print, textoidl(' \lambda_{1} (nm)')
> !7k!X!D1!N (nm)
>
> Just what I want. But...I want it in object graphics:
>
> IDL> string = textoidl(' \lambda_{1} (nm)')
> IDL> text = obj_new('idlgrtext', string, ENABLE_FORMATTING=1)
> IDL> xobjview, text
>
> NOT what I want. :-(
>
> What good is it to enable formatting if I'm going to get something
> completely different!?

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.

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: Sat Oct 11 19:17:10 PDT 2025

Total time taken to generate the page: 1.92071 seconds