Fork of golang/freetype with some extra stuff
3cc748686b
The previous "the endpoints are inclusive" comment seems confusing. It's true that the bounding box's max X equals the right-most coordinate, which suggests <= instead of <, but that node's coordinate is itself exclusive. Consider the solid 1-pixel square: (0, 0), (64, 0), (64, 64), (0, 64) in fixed.Point26_6 coordinates. The right-most coordinate is 64, and the bounding box's max X equals 64, but rasterizing that square only affects sub-pixels up to but not including 64. Instead, it seems accurate to follow the fixed.Rectangle26_6 description, in that the max values are exclusive. |
||
---|---|---|
cmd/print-glyph-points | ||
example | ||
licenses | ||
raster | ||
testdata | ||
truetype | ||
AUTHORS | ||
CONTRIBUTORS | ||
freetype.go | ||
freetype_test.go | ||
LICENSE | ||
README |
The Freetype font rasterizer in the Go programming language. To download and install from source: $ go get github.com/golang/freetype It is an incomplete port: * It only supports TrueType fonts, and not Type 1 fonts nor bitmap fonts. * It only supports the Unicode encoding. There are also some implementation differences: * It uses a 26.6 fixed point co-ordinate system everywhere internally, as opposed to the original Freetype's mix of 26.6 (or 10.6 for 16-bit systems) in some places, and 24.8 in the "smooth" rasterizer. Freetype-Go is derived from Freetype, which is written in C. Freetype is copyright 1996-2010 David Turner, Robert Wilhelm, and Werner Lemberg. Freetype-Go is copyright The Freetype-Go Authors, who are listed in the AUTHORS file. Unless otherwise noted, the Freetype-Go source files are distributed under the BSD-style license found in the LICENSE file.