Coyote Graphics Routines

Date: Fri Mar 27 12:14:20 2015

single page | use frames     summary     class     fields     routine details     file attributes


top cgDefCharSize

Graphics, Utilities

result = cgDefCharSize( [/ADJUSTSIZE] [, FONT=integer])

Defines a default character size for Coyote Graphics routines (cgPlot, cgContour, etc.) IF !P.Charsize is set, the function simply returns !P.Charsize.


ADJUSTSIZE in optional type=boolean default=0

If this keyword is set, the output character size is adjusted to fit the size of the output graphics window. No adjustment is ever done in PostScript. Applies only when !P.Charsize=0.

FONT in optional type=integer default=!P.Font

The font type: -1 = Hershey, 0 = hardware, 1 = true-type.

Author information



David W. Fanning 1645 Sheely Drive Fort Collins, CO 80526 USA Phone: 970-221-0438 E-mail: Coyote's Guide to IDL Programming:


Copyright (c) 2011-2014, Fanning Software Consulting, Inc.


Change History:

Written, 11 January 2011. DWF. Added an ADJUSTSIZE keyword to allow adjustable sizing of characters in resizeable graphics windows. 24 April 2011. DWF. Made sure this program only adjusts text size on devices that support windows. 20 July 2011. DWF. Made PostScript default font sizes on Windows slightly larger to conform with function graphics output in IDL 8.2.3. 17 June 2013. DWF. Did what I *thought* I did on 17 June 2013. 14 January 2013. DWF.

File attributes

Modification date: Fri Mar 27 11:07:37 2015
Lines: 181
Docformat: rst rst