gfx:make-text-with-glyphs

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


Description:

A warpper for automatically building a text path using a list of glyph indexes


Arguments:

      font-name -- font-name as a string

              x -- x coordinate of path

         glyphs -- a list of glyph indexes

      font-size -- font-size as a real

              y -- y coordinate of path


Returns: path


Examples:

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

(define *path* (gfx:make-text-with-glyphs 100 100 "Times-Roman" 72.0 '(10 20 30)))

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



Back to index