plt/racket — pull request #68 by gcr (2011-12-26 08:22:16+00:00)
Title: Bugfix: Make text-outline handle curves correctly

The text-outline method of dc-path% incorrectly handles curves.

Example: Incorrect rendering of this snipped:

(dc
(λ (dc x y)
(define r (new region%))
(let ([p (new dc-path%)])
(send p text-outline
(make-object font% 35 'default)
"Hello world"
x y)
(send r set-path p))
(send dc set-clipping-region r)
(send dc set-brush "black" 'solid)
(send dc draw-rectangle 0 0 500 200))
500 200)