freetype
freetype copied to clipboard
The Freetype font rasterizer in the Go programming language.
Added range checks to `func (f *Font) parseCmap()` to fix the invalid array accesses caused by the ttf file `ttf.crashers/9dcbc20080df0e49e3dd90c022eba03aa575c4b6` of #17. N.B.: I have signed Google's CLA
``` The attached archive contains 42 unique crashers for the package. The test inputs were passed through the following program: http://play.golang.org/p/qxzq2QBtYx The headers of crashes are provided below. Each one...
``` When p.X is less than zero, the position of first letter of s is incorrect! ``` Original issue reported on code.google.com by `[email protected]` on 30 Nov 2013 at 7:47...
``` What steps will reproduce the problem? 1. Use a non-image.Uniform image in SetSrc. 2. Call freetype.DrawString What is the expected output? What do you see instead? I'd expect that...
wonder if we have any plans to support miter joiner?
Hello! When using [`go-licenses`](https://github.com/google/go-licenses) to check the license of this repository it fails with: ``` E0531 10:47:39.569938 34756 library.go:122] Failed to find license for github.com/golang/freetype: cannot find a known open...
Currently, if both Full and BMPOnly Unicode cmaps are present, the library will pick whichever one it finds first. This means for libraries that have extended characters (for example, https://fonts.google.com/noto/specimen/Noto+Emoji...
I guess my question is how to implement the effects of `FT_LOAD_MONOCHROME` and `FT_LOAD_TARGET_MONO` when loading/rendering glyph outlines? From what I understand, the difference with monochrome load/rendering is not only...
I investigated the `done` input parameter of `func (r *RGBAPainter) Paint(ss []Span, done bool) {}` here: https://github.com/golang/freetype/blob/e2365dfdc4a05e4b8299a783240d4a7d5a65d4e4/raster/paint.go#L127 My debugger indicates that the `done` input parameter passed to the function is...