diff --git a/freetype.go b/freetype.go index 928d2f663780ffbe4fe2af603e67d21f3664fcbd..a4bc706589e832bab0ca99e1f6265528fe03f8f1 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 5d01c232d7a72973dcaff1e06a6f603609ddd877..e7ee464f63289768e9269b61aec32befb91c1381 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.