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

Home » Public Forums » archive » Re: Embedded Font formatting and positioning commands in ObjectGraphics
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: Embedded Font formatting and positioning commands in ObjectGraphics [message #19515] Tue, 21 March 2000 00:00 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"Ricardo Fonseca" <zamb@physics.ucla.edu> wrote in message
news:B4FC057C.4A1C%zamb@physics.ucla.edu...

> Is it possible to use Embedded Font formatting and positioning commands in
> Object Graphics?

Yes. You need to set the ENABLE_FORMATTING property of your IDLgrText object
to 1.

> I wanted to produce the same result as the use of the
> following string does in Direct Graphics
>
> '[1/!4x!X!Ip!N]'

Should work, but note that font-selection codes like !4 work differently in
TrueType fonts (the Object Graphics default) from the way they do in Hershey
fonts (the Direct Graphics default). E.g. !4 in Hershey gives you Simplex
Greek, but in TrueType it gives you Helvetica Bold (which probably wasn't
what you wanted). To get Greek characters in TrueType you need !9 (Symbol
font). See the table in the IDL docs under "Embedded Formatting Commands"

Thanks to Liam Gumley for helping me clarify this.

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Data Validation
Next Topic: Data Validation

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

Current Time: Thu Oct 09 06:49:05 PDT 2025

Total time taken to generate the page: 1.11925 seconds