All Manuals > LispWorks Release Notes and Installation Guide > 13 Release Notes > 13.5 New graphics ports features

NextPrevUpTopContentsIndex

13.5.2 Anti-aliased text and drawing

The new graphics state parameter text-mode controls the mode of rendering text, most importantly anti-aliasing. To draw text without anti-aliasing use:

(gp:draw-string pane
 string
 x
 y
 :text-mode :plain)

To draw text the way it would be drawn if drawing-mode was :compatible , use:

(gp:draw-string pane
 string
 x
 y
 :text-mode :compatible)

The new graphics state parameter shape-mode controls the mode of drawing shapes, that is anything except text. For example to draw a rectangle without anti-aliasing use:

(gp:draw-rectangle pane
 x
 y
 w
 h
 :shape-mode :plain)

Currently text-mode and shape-mode are supported only when the drawing-mode is :quality , described in Quality drawing. For further details see the manual page for gp:graphics-state .


LispWorks Release Notes and Installation Guide - 23 Dec 2011

NextPrevUpTopContentsIndex