Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1194)

Issue 2234042: code review 2234042: freetype: make DrawString look more like draw.DrawMask:...

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by nigeltao
Modified:
13 years, 7 months ago
Reviewers:
r, rog
CC:
golang-dev
Visibility:
Public.

Description

freetype: make DrawString look more like draw.DrawMask: dst, src and the clip rectangle are now arguments instead of context state. Also drop the error return.

Patch Set 1 #

Patch Set 2 : code review 2234042: freetype: make DrawString look more like draw.DrawMask:... #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -49 lines) Patch
M example/freetype/main.go View 2 chunks +1 line, -8 lines 0 comments Download
M freetype/freetype.go View 3 chunks +23 lines, -41 lines 1 comment Download

Messages

Total messages: 2
nigeltao
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
13 years, 7 months ago (2010-09-17 05:57:30 UTC) #1
rog
13 years, 7 months ago (2010-09-17 10:15:34 UTC) #2
LGTM in general, but see below.

http://codereview.appspot.com/2234042/diff/2001/freetype/freetype.go
File freetype/freetype.go (right):

http://codereview.appspot.com/2234042/diff/2001/freetype/freetype.go#newcode205
freetype/freetype.go:205: // DrawString is similar to draw.DrawMask in that it
draws src onto dst through
in DrawMask, mp and sp are aligned with r.Min. this code doesn't do this - i'm
not sure that it's possible to know how the source image will be aligned in dst
without knowing the glyph bounds. essentially, you're using r as a simple clip
rectangle here, but it needs to be more - a clip rectangle *and* a destination
point. i think you need another argument.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b