Nigel Tao
ba07cbfbc8
freetype/truetype: set the four phantom points, and adjust the glyph
...
points accordingly.
Yes, it's a mess, but let's pass the tests first, and then refactor.
R=bsiegert
CC=golang-dev
https://codereview.appspot.com/14419052
2013-10-10 07:43:32 +11:00
Nigel Tao
7505dadf20
freetype/truetype: make a (sub-)glyph's points an explicit part of a
...
Hinter's state, instead of having a glyph shrink and restore its
points around hinting.
R=bsiegert
CC=golang-dev
https://codereview.appspot.com/14203043
2013-10-02 20:37:11 +10:00
Nigel Tao
e88fe00bdb
freetype/truetype: fix hinting of compound glyphs.
...
R=bsiegert
CC=golang-dev
https://codereview.appspot.com/14117043
2013-10-01 18:08:52 +10:00
Nigel Tao
75fff80b59
freetype/truetype: implement IP, MIAP, MIRP opcodes.
...
R=bsiegert
CC=golang-dev
https://codereview.appspot.com/13855043
2013-09-24 22:06:47 +10:00
Nigel Tao
a3c53fdc3f
freetype/truetype: implement ALIGNRP, MDAP and MDRP opcodes.
...
We can now hint the .notdef glyph from luxisr.ttf. Yay.
R=bsiegert
CC=golang-dev
https://codereview.appspot.com/12829048
2013-08-31 16:08:40 +10:00
Nigel Tao
a8a5cfeb78
freetype: respect the ROUND_XY_TO_GRID compound glyph flag.
...
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
2013-08-13 21:08:54 +10:00
Nigel Tao
43c4b0b00d
freetype/truetype: add explicit graphics state.
...
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
2013-08-02 19:13:26 +10:00
Nigel Tao
e3b4bc4c1f
freetype/truetype: function call opcodes.
...
R=bsiegert
CC=golang-dev
https://codereview.appspot.com/11983043
2013-07-30 19:20:31 +10:00
Nigel Tao
28cc5fbc5d
freetype: move the scaling from FUnits to pixels from package freetype
...
to package truetype.
R=bsiegert
CC=golang-dev
http://codereview.appspot.com/6427062
2012-07-25 22:10:25 +10:00
Nigel Tao
6baa5f0a46
freetype: optimize []byte to uint16/uint32 conversions.
...
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
2012-06-16 12:19:07 +10:00
Nigel Tao
a16d1037a1
freetype: re-organize the freetype/truetype package into smaller files.
...
No code changes, just a copy/paste.
R=bradfitz
CC=golang-dev
http://codereview.appspot.com/6201052
2012-05-07 12:04:52 +10:00