Fork of golang/freetype with some extra stuff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hamcha 3115318f25
Refactor to use emoji package
2 years ago
cmd/print-glyph-points freetype/truetype: add testdata for advance widths and bounding boxes. 7 years ago
example Everything should be working decently now! 2 years ago
licenses Freetype-Go: Initial code check-in. 11 years ago
raster Change import paths 2 years ago
testdata freetype/truetype: update the golden tests for Ubuntu 14.04's version 6 years ago
truetype Change import paths 2 years ago
.gitignore Start work on emoji (mostly to be scrapped tho) 2 years ago
AUTHORS A+C: add Michael Fogleman <> 5 years ago
CONTRIBUTORS A+C: add Michael Fogleman <> 5 years ago
LICENSE freeetype: move the test fonts from the luxi-fonts/ directory to 7 years ago
README Delete hg related detritus. 5 years ago
emoji.go Refactor to use emoji package 2 years ago
freetype.go Refactor to use emoji package 2 years ago
freetype_test.go Update BenchmarkDrawString testdata dir. 5 years ago


The Freetype font rasterizer in the Go programming language.

To download and install from source:
$ go get

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

Unless otherwise noted, the Freetype-Go source files are distributed
under the BSD-style license found in the LICENSE file.