gfx:make-text

(gfx:make-text x y font-name font-size str)


Description:

A warpper for automatically building a text path


Arguments:

      font-name -- font-name as a string

              x -- x coordinate of path

      font-size -- font-size as a real

            str -- the string to use for text

              y -- y coordinate of path


Returns: path


Examples:

(define *canvas* (gfx:make-canvas 300 300))

(define *path* (gfx:make-text 100 100 "Times-Roman" 72.0 "Hello"))

(gfx:draw-path (now) *canvas* *path* '() '(0.0 0.5 1.0 1.0))



Back to index