Re: TrueType fonts question [message #74165] |
Tue, 04 January 2011 14:49 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
nata writes:
> I was reading the following lines from the IDL help:
>
> IDL provides five TrueType outline fonts for use in font objects:
> Courier, Helvetica, Monospace Symbol, Symbol, and Times. Your system
> may support additional TrueType fonts ?use them in the same way as
> those supplied by IDL.
>
> So I started trying :
> font=obj_new('idlgrfont','Tahoma')
> text=obj_new('idlgrtext','test',font=font)
> xobjview, text
>
> But the final object text is always using Helvetica.
> I also tried, Lucida, Utopia, Palladio, etc. It seems that my computer
> has these fonts because I listed them:
> DEVICE, GET_FONTNAMES=fnames, SET_FONT='*'
>
> Mmmh ! What am I missing ?
To use your true-type font in object graphics, I *believe*
you have to add its name to the ttfont.map file in the
IDL_DIR/resource/fonts/tt directory. It's been a while
since I did this, but you can read about it in the middle
of this article:
http://www.dfanning.com/misc_tips/sun_symbol.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|