Re: [racket] Drawing a gradient on text

2011-12-26 Thread Matthew Flatt
Thanks! (I should have thought to make sure my test case includes a curve.) At Mon, 26 Dec 2011 01:23:08 -0700, Michael W wrote: > Ah, I found the issue. > > The "curve" case in the case statement on lines 289-296 of > dc-path.rkt should read: > > (case (car a) > [(move) (move-to (cadr a) (cad

Re: [racket] Drawing a gradient on text

2011-12-26 Thread Michael W
Ah, I found the issue. The "curve" case in the case statement on lines 289-296 of dc-path.rkt should read: (case (car a) [(move) (move-to (cadr a) (caddr a))] [(line) (line-to (cadr a) (caddr a))] [(curve) (curve-to (cadr a) (caddr a) (list-ref a 3) (list-ref a 4)

Re: [racket] Drawing a gradient on text

2011-12-25 Thread Michael W
Wow, that's really fast! Thanks for looking into this. Unfortunately, text-outline seems to garble some glyphs. Am I doing something wrong? As of commit e12bf33..., the attached code produces this ... output, which looks more like an impersonation of my handwriting than a text path: http://img580

Re: [racket] Drawing a gradient on text

2011-12-25 Thread Matthew Flatt
I guess I've been waiting for a reason to sort out text paths. The `dc-path%' class now has a `text-outline' method (as of the latest in the git repo). At Sun, 25 Dec 2011 00:00:44 -0700, Michael W wrote: > Merry Christmas, Racketeers! > > Is there an easy way to draw text to a bitmap% with a gra

[racket] Drawing a gradient on text

2011-12-24 Thread Michael W
Merry Christmas, Racketeers! Is there an easy way to draw text to a bitmap% with a gradient? I briefly looked into adding linear-gradient% and radial-gradient% support to slideshow/pict but unfortunately we can't draw text using an arbitrary brush% as the draw-text method of dc% ignores that. My