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

Unified Diff: freetype/truetype/hint.go

Issue 14419052: code review 14419052: freetype/truetype: set the four phantom points, and adj... (Closed)
Patch Set: diff -r 00d9ad1a50a7 https://code.google.com/p/freetype-go Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « freetype/truetype/glyph.go ('k') | freetype/truetype/truetype.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: freetype/truetype/hint.go
===================================================================
--- a/freetype/truetype/hint.go
+++ b/freetype/truetype/hint.go
@@ -96,9 +96,7 @@
}
func resetTwilightPoints(f *Font, p []Point) []Point {
- // TODO: the C Freetype code uses n+4 for the 4 phantom points, but a
- // comment there says "(do we need this?)". Do we need to use n+4 here?
- if n := int(f.maxTwilightPoints); n <= cap(p) {
+ if n := int(f.maxTwilightPoints) + 4; n <= cap(p) {
p = p[:n]
for i := range p {
p[i] = Point{}
« no previous file with comments | « freetype/truetype/glyph.go ('k') | freetype/truetype/truetype.go » ('j') | no next file with comments »

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