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

Home » Public Forums » archive » Re: Z-buffer font quality
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: Z-buffer font quality [message #14882 is a reply to message #14870] Fri, 02 April 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Gwyn Fireman (fireman@mcst.gsfc.nasa.gov) writes:

> I am trying to generate plots with high-quality fonts using the
> Z-buffer. TrueType fonts of the size I would usually use for titles
> come out chunky and less readable than hardware fonts. David Fanning
> has recently claimed success with this; what am I doing wrong?

Well, I usually write to the Z-buffer at twice the resolution that
I want to see on the display. For example, here is your modified
code. It looks OK on my display, but perhaps I'm not that picky
for display purposes. Now, hardcopy, that's something else. :-)

PRO TEST
thisDevice = !D.Name
set_plot, 'Z' ; open gif
!p.font = 1 ; set font
Device, Set_Font='Times', /TT_Font, Set_Resolution=[800, 800]
plot, indgen(5), title = 'Main Plot Title', $
xtitle = 'X-Axis Title', ytitle = 'Y-Axis Title', $
color = 0, background = 255, charsize=2.0 ; Twice normal size characters
xyouts, 0.5, 3, 'Annotation', color=0, size=4

image = tvrd() ; capture plot from Z-buffer
set_plot, thisDevice
window, 0, xsize=400, ysize=400
tv, Rebin(image, 400, 400) ; display image
END

Cheers,
--
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: REPENT: & irreverent "humour"
Next Topic: Need help with Wavelet Workbench

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

Current Time: Wed Oct 08 17:01:00 PDT 2025

Total time taken to generate the page: 0.00490 seconds