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

Home » Public Forums » archive » Re: Font Creation
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: Font Creation [message #5505] Wed, 17 January 1996 00:00
Eric Deutsch is currently offline  Eric Deutsch
Messages: 11
Registered: May 1995
Junior Member
Justin Baker wrote:
>
> I had no luck with my previous posting for IDL meteorological symbols,
> so...
>
> Does anyone have some routines to automatically define characters in a
> font file at a programming level ?
>
> For example, instead of manually defining 100 different weather symbols
> using efont (aaaargh !), I'd like to do something like :
>
> open_font, 16
> sym1 = new_sym
> draw,0,0,100,100
> draw,10,10,50,40
> ...
> ...
> save_sym, sym1
>
> sym2=...
>
> close_font
>
> save_font,'/home/junk/myfont'

I'm not sure I completely understand what you ask, but here are two
suggestions:

1) If you are interested in vector-drawn characters and are willing
to define them yourself (which is I think what you are try to
show above), how about writing a program like:

pro metsym,x,y,sym,symsize
if (sym eq 0) then begin
plots,/100.0*symsize+x,/100.0*symsize+y
plots,[etc.
endif
if (sym eq 1) then begin
plots,/100.0*symsize+x,[0,100,20,0]/100.0*symsize+y
plots,[etc.
endif
return
end


2) If you are interested in a bit-mapped font set, I do have something
you might use: one program takes a large image which contains
the whole symbol set in it and separates all the symbols into a specific
format and saves that. the other program is similar to xyouts, taking
x,y,string and then a fontname... the letters are TV'ed onto the screen
from the stored bitmap font file. I use this when I need big block letters
on the screen, larger than what my X font library contains.

hope this helps a little..

Eric

--
------------------------------------------------------------ ----------------
Eric Deutsch email: deutsch@astro.washington.edu
Department of Astronomy Voice: (206) 616-2788
University of Washington FAX: (206) 685-0403
Box 351580 WWW: http://www.astro.washington.edu/deutsch
Seattle, WA 98195-1580 Physics/Astronomy Bldg., Room B356F
[Message index]
 
Read Message
Previous Topic: Re: Plotting functions in IDL
Next Topic: Re: Gif output for Wave

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

Current Time: Fri Oct 10 19:31:58 PDT 2025

Total time taken to generate the page: 0.87820 seconds