On this page:
current-ps-setup
get-face-list
get-family-builtin-face
make-bitmap
make-font
make-monochrome-bitmap
read-bitmap
the-brush-list
the-color-database
the-font-list
the-font-name-directory
the-pen-list

25 Drawing Functions

A parameter that determines the current PostScript configuration settings. See post-script-dc% and printer-dc%.

(get-face-list [kind 
  #:all-variants? all-variants?]) 
  (listof string?)
  kind : (one-of/c 'mono 'all) = 'all
  all-variants? : any/c = #f
Returns a list of font face names available on the current system. If kind is 'mono, then only faces that are known to correspond to monospace fonts are included in the list.

If all-variants? is #f (the default), then the result is in more standard terminology a list of font family names, which are combined with style and weight options to arrive at a face; if all-variants? is true, then the result includes a string for each available face in the family.

(get-family-builtin-face family)  string?
  family : 
(one-of/c 'default 'decorative 'roman 'script
          'swiss 'modern 'symbol 'system)
Returns the built-in default face mapping for a particular font family.

See font% for information about family.

(make-bitmap width height [alpha?])  (is-a?/c bitmap%)
  width : exact-positive-integer?
  height : exact-positive-integer?
  alpha? : any/c = #t
Returns (make-object bitmap% width height #f alpha?), but this procedure is preferred because it defaults alpha? in a more useful way.

(make-font [#:size size    
  #:face face    
  #:family family    
  #:style style    
  #:weight weight    
  #:underlined? underlined?    
  #:smoothing smoothing    
  #:size-in-pixels? size-in-pixels?])  (is-a?/c font%)
  size : (integer-in 1 1024) = 12
  face : (or/c string? #f) = #f
  family : 
(one-of/c 'default 'decorative 'roman 'script
          'swiss 'modern 'symbol 'system)
   = 'default
  style : (one-of/c 'normal 'italic 'slant) = 'normal
  weight : (one-of/c 'normal 'bold 'light) = 'normal
  underlined? : any/c = #f
  smoothing : 
(one-of/c 'default 'partly-smoothed
           'smoothed 'unsmoothed)
 = 'default
  size-in-pixels? : any/c = #f
Creates a font% instance. This procedure provides an equivalent but more convenient interface compared to using make-object with font%.

(make-monochrome-bitmap width height [bits])  (is-a?/c bitmap%)
  width : exact-positive-integer?
  height : exact-positive-integer?
  bits : (or/c bytes? #f) = #f
Returns (make-object bitmap% width height #t) if bits is #f, or (make-object bitmap% bits width height) otherwise. This procedure is preferred to using make-object on bitmap% because it is less overloaded.

(read-bitmap in    
  [kind    
  bg-color    
  complain-on-failure?])  (is-a?/c bitmap%)
  in : (or path-string? input-port?)
  kind : 
(one-of/c 'unknown 'unknown/mask 'unknown/alpha
          'gif 'gif/mask 'gif/alpha
          'jpeg 'jpeg/alpha
          'png 'png/mask 'png/alpha
          'xbm 'xbm/alpha 'xpm 'xpm/alpha
          'bmp 'bmp/alpha)
   = 'unknown/alpha
  bg-color : (or/c (is-a?/c color%) false/c) = #f
  complain-on-failure? : any/c = #t
Returns (make-object bitmap% in kind bg-color complain-on-failure?), but this procedure is preferred because it defaults kind and complain-on-failure? in a more useful way.