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

Issue 2275043: code review 2275043: freetype: implement stroke for quadratic segments. (Closed)

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

Description

freetype: implement stroke for quadratic segments. Fix bug where the String representation of a Fix32 representing minus one quarter was "0:064" instead of "-0:064".

Patch Set 1 #

Patch Set 2 : code review 2275043: freetype: implement stroke for quadratic segments. #

Total comments: 23

Patch Set 3 : code review 2275043: freetype: implement stroke for quadratic segments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+507 lines, -255 lines) Patch
M freetype/raster/Makefile View 1 chunk +1 line, -1 line 0 comments Download
M freetype/raster/geom.go View 1 2 3 chunks +40 lines, -254 lines 0 comments Download
A freetype/raster/stroke.go View 1 2 1 chunk +466 lines, -0 lines 0 comments Download

Messages

Total messages: 10
nigeltao
Hello r, rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 3 months ago (2010-09-26 14:49:05 UTC) #1
nigeltao_gnome
On 27 September 2010 00:49, <nigeltao@golang.org> wrote: > Description: > freetype: implement stroke for quadratic ...
14 years, 2 months ago (2010-10-01 09:43:27 UTC) #2
rog
http://codereview.appspot.com/2275043/diff/2001/freetype/raster/stroke.go File freetype/raster/stroke.go (right): http://codereview.appspot.com/2275043/diff/2001/freetype/raster/stroke.go#newcode418 freetype/raster/stroke.go:418: // Stroke adds the stroked Path q to p. ...
14 years, 2 months ago (2010-10-01 09:54:35 UTC) #3
rsc1
LGTM http://codereview.appspot.com/2275043/diff/2001/freetype/raster/geom.go File freetype/raster/geom.go (right): http://codereview.appspot.com/2275043/diff/2001/freetype/raster/geom.go#newcode270 freetype/raster/geom.go:270: // AddPath adds the Path q to p. ...
14 years, 2 months ago (2010-10-01 15:54:20 UTC) #4
r
i can't say i understand the code on first reading, but it's certainly well written. ...
14 years, 2 months ago (2010-10-01 16:43:20 UTC) #5
r
LGTM
14 years, 2 months ago (2010-10-01 16:43:38 UTC) #6
rsc
> freetype/raster/geom.go:282: // FirstPoint returns the first point in a > non-empty Path. > grump. ...
14 years, 2 months ago (2010-10-01 20:01:33 UTC) #7
nigeltao_gnome
On 2 October 2010 02:43, <r@golang.org> wrote: > i can't say i understand the code ...
14 years, 2 months ago (2010-10-02 03:00:11 UTC) #8
nigeltao
*** Submitted as http://code.google.com/p/freetype-go/source/detail?r=55fe78831abb *** freetype: implement stroke for quadratic segments. Fix bug where the ...
14 years, 2 months ago (2010-10-03 02:53:01 UTC) #9
nigeltao
14 years, 2 months ago (2010-10-03 02:53:29 UTC) #10
http://codereview.appspot.com/2275043/diff/2001/freetype/raster/stroke.go
File freetype/raster/stroke.go (right):

http://codereview.appspot.com/2275043/diff/2001/freetype/raster/stroke.go#new...
freetype/raster/stroke.go:163: multiple := Fix32(150 - 22*(d-181)/(256-181))
On 2010/10/01 16:43:20, r wrote:
> if 106 gets a name, so does 181. and maybe the name should be longer than 't'.

I've renamed t (representing tan(π/8)) to tpo8. The other magic numbers are used
only on this line and have an extensive comment immediately above, so I don't
see the need for a named constant.
Sign in to reply to this message.

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