golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124k stars 17.67k forks source link

x/image/font: wrong rendering of intersecting paths #28932

Open ktye opened 5 years ago

ktye commented 5 years ago

What version of Go are you using (go version)?

$ go version
go version go1.11.1 windows/amd64

What did you do?

Parse APL386 true type font with github.com/golang/freetype/truetype and render U+2262 with golang.org/x/image/font Drawer.DrawString.

I'll update with a link to example code and images shortly.

What did you expect to see?

A rendering of the rune, that has intersecting paths. The intersecting regions should be filled (with black color).

What did you see instead?

Intersecting regions are not filled, they are left white.

ktye commented 5 years ago

Here is example code with rendered images: https://github.com/ktye/goissues/tree/master/28932