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

Issue 894041: code review 894041: Freetype-Go: Implement cubic splines; rename MoveN to AddN. (Closed)

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

Description

Freetype-Go: Implement cubic splines; rename MoveN to AddN.

Patch Set 1 #

Patch Set 2 : code review 894041: Freetype-Go: Implement cubic splines; rename MoveN to AddN. #

Patch Set 3 : code review 894041: Freetype-Go: Implement cubic splines; rename MoveN to AddN. #

Total comments: 2

Patch Set 4 : code review 894041: Freetype-Go: Implement cubic splines; rename MoveN to AddN. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -53 lines) Patch
M example/raster/main.go View 1 chunk +2 lines, -2 lines 0 comments Download
M freetype/raster/raster.go View 1 7 chunks +116 lines, -51 lines 0 comments Download

Messages

Total messages: 4
nigeltao
Hello rsc@golang.org (cc: golang-dev@googlegroups.com, r@golang.org), I'd like you to review this change.
14 years, 7 months ago (2010-04-06 00:23:47 UTC) #1
rsc1
LGTM http://codereview.appspot.com/894041/diff/5001/6002 File freetype/raster/raster.go (right): http://codereview.appspot.com/894041/diff/5001/6002#newcode360 freetype/raster/raster.go:360: midx := (p[0].X + 2*p[1].X + p[2].X) / ...
14 years, 7 months ago (2010-04-06 05:17:52 UTC) #2
nigeltao
*** Submitted as http://code.google.com/p/freetype-go/source/detail?r=ee04355173c8 *** Freetype-Go: Implement cubic splines; rename MoveN to AddN. R=rsc CC=golang-dev, ...
14 years, 7 months ago (2010-04-06 11:26:55 UTC) #3
nigeltao
14 years, 7 months ago (2010-04-06 11:31:40 UTC) #4
http://codereview.appspot.com/894041/diff/5001/6002
File freetype/raster/raster.go (right):

http://codereview.appspot.com/894041/diff/5001/6002#newcode360
freetype/raster/raster.go:360: midx := (p[0].X + 2*p[1].X + p[2].X) / 4
On 2010/04/06 05:17:52, rsc1 wrote:
> This changed from r.a to p[0] (e.g. pstack[2] to pstack[2*i])
> I assume that was intentional - it looks like 
> a reasonable bug fix - but wanted to point it out just in case.
> 

Yes, this was intentional. It wasn't a bug fix so much as that I think it's
easier to understand and more symmetrical this way (p[2]) than the C Freetype
implementation's way (r.a). They're both the same value, being the current pen
position. r.a is set at the last line of Start or Add1.
Sign in to reply to this message.

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