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

Home » Public Forums » archive » Re: Using device fonts in object graphics ?
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: Using device fonts in object graphics ? [message #82611] Thu, 03 January 2013 10:23 Go to previous message
George.millward is currently offline  George.millward
Messages: 26
Registered: October 2012
Junior Member
On Thursday, January 3, 2013 11:10:16 AM UTC-7, David Fanning wrote:
> David Fanning writes:
>
>
>
>> As far as I know, you can use any true-type font you have
>
>> installed on your machine:
>
>>
>
>> Device, TT_FONT=1, SET_FONT='WhatEverYouHave'
>
>
>
> I guess in object graphics you assign the font name
>
> with an IDLgrFont object.
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

David,

Yeh, I figured it out.

First you list your available fonts:

DEVICE, GET_FONTNAMES=fnames, SET_FONT='*'
FOREACH element, fnames DO PRINT, 'Value = @', element,'@'

then you set one up, ie:

main_text_font = Obj_New('IDLgrFont', 'Franklin Gothic Demi', Size=10)

Seems to work !!

Thanks for your help.

George.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using device fonts in object graphics ?
Next Topic: Was a file opened with /Swap_if_little_endian ?

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

Current Time: Fri Oct 10 11:31:22 PDT 2025

Total time taken to generate the page: 0.80065 seconds