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

Home » Public Forums » archive » Re: TrueType fonts question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: TrueType fonts question [message #74165] Tue, 04 January 2011 14:49
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: TrueType fonts question
Next Topic: How to extract a scalar from a vector?

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

Current Time: Wed Oct 08 13:52:24 PDT 2025

Total time taken to generate the page: 0.00432 seconds