gfx:add-glyphs

(gfx:add-glyphs path text-style glyphs)


Description:

Appends a series of glyphs (specified as integer indexes in the list glyphs).  The glyphs are

  converted into a bezier path before being appended to the

  given path.


Arguments:

           path -- Bezier path to append text to

     text-style -- The font to use for rendering the string

         glyphs -- A list of glyph indexes (integers)


Returns: boolean


Examples:

(define *canvas* (gfx:make-canvas '(0 0 800 600)))

(define *text-style* (gfx:make-text-style "Times-Roman" 72.0 (list 1.0 1.0 1.0 0.25)))

(define *path* (gfx:make-path))

(gfx:set-start-point *path* 150 250)

(gfx:add-glyphs *path* *text-style* '(10 20 30 40))

(gfx:draw-path (now) *canvas* *path* '(1 0 0 1) '())




Back to index