Also add a test that freetype-go derives the same glyph points as
the C freetype implementation.
R=bsiegert
CC=golang-dev
https://codereview.appspot.com/12670046
These new opcodes aren't unit-tested per se, but they will be
exercised by an end-to-end hinting test of the Luxi fonts.
R=bsiegert
CC=golang-dev
https://codereview.appspot.com/12100043
Thanks to Jeff R. Allen <jra@nella.org> for the conversation that
led to this change.
benchmark old ns/op new ns/op delta
BenchmarkDrawString 21168440 20143860 -4.84%
The number of mallocs per iteration is unchanged.
R=rsc, r
CC=golang-dev, jra
http://codereview.appspot.com/6304077
I'm not sure why I put that limit in in the first place. I can't find
that limit in either the C Freetype code or the TTF spec.
R=bradfitz
CC=golang-dev
http://codereview.appspot.com/6201043
consistency with existing NewFooPainter functions.
Unbreak build from ColorImage change in the core image package.
R=adg
CC=golang-dev
http://codereview.appspot.com/2450041
Fix bug where the String representation of a Fix32 representing minus
one quarter was "0:064" instead of "-0:064".
R=r, rsc, rog, nigeltao_gnome
CC=golang-dev
http://codereview.appspot.com/2275043
bounding rect.
This does for Alpha{Over,Src}Painter what revision 7329234544
did for RGBAPainter.
R=r
CC=golang-dev
http://codereview.appspot.com/2210041
Porter-Duff composition operator used. This saves a malloc when passing
an AlphaSrcPainter as a value of Painter interface type.
R=r
CC=golang-dev
http://codereview.appspot.com/2149044
A freetype.Context now has dst and src image setters and the notion of
a current point, instead of having to pass a painter and pt to DrawText.
R=r, rsc
CC=golang-dev
http://codereview.appspot.com/2169041
bounding rect.
This bug was introduced when an image.RGBA's representation went from
slice of slices to one linear buffer.
R=r
CC=golang-dev
http://codereview.appspot.com/2020044
just version 2. The FTL (Freetype Licence) is still available. This
matches the original Freetype library (written in C).
This only expands and does not further restrict the licensing options
available to users of the freetype-go library.
R=adg
CC=golang-dev
http://codereview.appspot.com/1731049
It still isn't perfect (e.g. it doesn't join), but it's getting closer.
Also fix the bug where RotateCW and RotateCCW was mixed up, since the
Y-axis grows down in a computer graphics co-ordinate system, not up as
in classical mathematics.
R=r, rsc, rog
CC=golang-dev
http://codereview.appspot.com/1736043
The stroking algorithm is a placeholder. A proper one will land in a
future change once the API is agreed upon.
R=r, rsc
CC=golang-dev, rog
http://codereview.appspot.com/1708045
magic zero value to indicate end of painting.
This means that Painter implementations can assume thant the Spans' Y
values are monotonic.
R=rsc
CC=golang-dev, rog
http://codereview.appspot.com/1261043