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

Home » Public Forums » archive » Re: Beyond 7-bit ASCII
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: Beyond 7-bit ASCII [message #40727 is a reply to message #40725] Mon, 30 August 2004 10:40 Go to previous messageGo to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
"David Fanning" <davidf@dfanning.com> wrote in message
news:MPG.1b9d06e4f09bcd5b98986a@news.frii.com...
> Karl Schultz writes:
>
>> This example combines the two using object graphics:
>>
>> IDL> oText = OBJ_NEW('IDLgrText', "I will !6do!X it ma!Z('F1'x)ana",
>> /ENABLE_FORMATTING)
>> IDL> xobjview, oText
>>
>> !6 switches to complex roman and !X gets you back to the entry font.
>
> Yes, I did get something like this working. What I couldn't
> figure out how to do (and I think this is what the original
> poster wanted) was how to get Greek symbols into his code.
> For example, I tried this:
>
> text = Obj_New('IDLgrText', ENABLE_FORMATTING=1, $
> "(!4!z(88)!X) Greek Symbol Omega", color=[0,0,128])
> XObjView, text
>
> Maybe I don't know how to read the octal table. But I see
> Font 4, the omega sign is 12x plus 10 octal is:
>
> IDL> Print, "120
> 88
>
> Why doesn't this work?
>

I think that you are looking at the vector font encodings and trying to
apply them to TrueType fonts.

So, you can go one way or the other:

TrueType:
text = Obj_New('IDLgrText', ENABLE_FORMATTING=1, $
"(!10W!X) Greek Symbol Omega", color=[0,0,128])
XObjView, text


Hershey vector fonts:

oFont = OBJ_NEW('IDLgrFont', 'Hershey')
xobjview, obj_new('idlgrtext', '(!4!Z(58)!X) Greek Symbol Omega',
FONT=oFont, /ENABLE_FORMATTING)

Karl
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TVRD on an XROI screen??
Next Topic: Re: Combinatorial

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

Current Time: Sun Oct 12 00:04:09 PDT 2025

Total time taken to generate the page: 1.20011 seconds