Re: Embedded Font formatting and positioning commands in ObjectGraphics [message #19515] |
Tue, 21 March 2000 00:00 |
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
|
|
|
Re: Embedded Font formatting and positioning commands in ObjectGraphics [message #19517 is a reply to message #19515] |
Mon, 20 March 2000 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Mark Hadfield (m.hadfield@niwa.cri.nz) writes:
> 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"
Just for those of you who are naive enough to think
that typing any one or all of the three words "embedded
formatting commands" in the Index field of the IDL on-line
help might lead you to the correct table, let me describe
the torturous route I finally took after all three of
those words turned up nada.
I looked up "vector-drawn fonts", which led me to the
link "Font Overview", from which I followed the "About
True-Type Font" link. About half-way down that page, I
discovered the "Embedded Formatting Commands" link that
finally led me to the page Mark mentions.
And to think that I had been looking for months for this
page when it was that easy to find...
Cheers,
David
P.S. Let's just say that I can't remember the little
glyph thingy for "dripping with sarcasm". :-(
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|