From d8618774be302d78eff0b2752aa826ed6fa6da28 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sat, 22 Aug 2015 14:48:07 +1000 Subject: [PATCH] Fix some comment typos. These comments weren't updated when we went from 24.8 to 26.6. --- freetype.go | 2 +- raster/raster.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freetype.go b/freetype.go index 928d2f6..a4bc706 100644 --- a/freetype.go +++ b/freetype.go @@ -157,7 +157,7 @@ func (c *Context) drawContour(ps []truetype.Point, dx, dy fixed.Int26_6) { // rasterize returns the advance width, glyph mask and integer-pixel offset // to render the given glyph at the given sub-pixel offsets. -// The 24.8 fixed point arguments fx and fy must be in the range [0, 1). +// The 26.6 fixed point arguments fx and fy must be in the range [0, 1). func (c *Context) rasterize(glyph truetype.Index, fx, fy fixed.Int26_6) ( fixed.Int26_6, *image.Alpha, image.Point, error) { diff --git a/raster/raster.go b/raster/raster.go index 5d01c23..e7ee464 100644 --- a/raster/raster.go +++ b/raster/raster.go @@ -116,7 +116,7 @@ func (r *Rasterizer) setCell(xi, yi int) { } // scan accumulates area/coverage for the yi'th scanline, going from -// x0 to x1 in the horizontal direction (in 24.8 fixed point co-ordinates) +// x0 to x1 in the horizontal direction (in 26.6 fixed point co-ordinates) // and from y0f to y1f fractional vertical units within that scanline. func (r *Rasterizer) scan(yi int, x0, y0f, x1, y1f fixed.Int26_6) { // Break the 26.6 fixed point X co-ordinates into integral and fractional parts.