I can't seem to specify custom TrueType fonts in Z-buffer plots in IDL 7.1.1 or 8.2 on Mac OS 10.8.2. I've tried most of the fonts listed in resource/fonts/tt/ttfont.map with no luck.
Example code:
pro zfont_test
x=dindgen(100)/50.*!dpi
y=sin(x)
set_plot,'Z'
device,decomposed=0, set_resolution=[800,600],set_pixel_depth=24
device,set_font="Helvetica",/tt_font
plot,x,y,title='plot title',xtitle='x axis', ytitle='y axis',/xstyle
write_png,'zfont_test_h.png',tvrd(true=1)
device,set_font="Courier Bold Italic",/tt_font
plot,x,y,title='plot title',xtitle='x axis', ytitle='y axis',/xstyle
write_png,'zfont_test_cbi.png',tvrd(true=1)
end
The fonts in these plots appear identical. Is this a bug, or am I just doing something entirely wrong?
|