The Freetype font rasterizer in the Go programming language.
Перейти к файлу
Nigel Tao 6deea24143 Add a truetype.Face type.
Its implementation is mostly a copy/paste of the freetype.Context type.
Follow-up commits will make it more efficient.

Also add an example that uses a truetype.Face and the
golang.org/x/exp/shiny/font package to draw text.
2015-08-22 14:46:12 +10:00
cmd/print-glyph-points freetype/truetype: add testdata for advance widths and bounding boxes. 2013-12-16 13:47:21 +11:00
example Add a truetype.Face type. 2015-08-22 14:46:12 +10:00
licenses Freetype-Go: Initial code check-in. 2010-04-02 10:07:24 +11:00
raster Don't use backtick quotes in the comments. 2015-08-18 16:33:14 +10:00
testdata freetype/truetype: update the golden tests for Ubuntu 14.04's version 2014-11-07 09:38:15 +11:00
truetype Add a truetype.Face type. 2015-08-22 14:46:12 +10:00
AUTHORS freetype: A+C: R?my Oudompheng (individual CLA) 2013-10-22 15:48:40 +11:00
CONTRIBUTORS freetype: C: add R?my Oudompheng's gmail.com address. 2013-10-22 17:13:00 +11:00
LICENSE freeetype: move the test fonts from the luxi-fonts/ directory to 2013-10-04 17:03:59 +10:00
README Delete hg related detritus. 2015-08-11 14:38:11 +10:00
freetype.go Fix rounding up for 26.6 fixed point, not 24.8. 2015-08-21 14:00:51 +10:00
freetype_test.go Update BenchmarkDrawString testdata dir. 2015-08-20 16:09:11 +10:00

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.