fogleman / gg

Go Graphics - 2D rendering in Go with a simple API.
https://godoc.org/github.com/fogleman/gg
MIT License
4.37k stars 354 forks source link

DrawStringWrapped() doesn't accept Braille Patterns #143

Closed TheZoraiz closed 3 years ago

TheZoraiz commented 3 years ago

First of all, thanks a lot for creating this library, it's awesome 👍

I use this in my application to generate text-based images, but have recently run into a problem using braille patterns from UTF-8. They don't work in DrawStringWrapped()

For reference, this is the text I'm trying to write on an image:


But this is what I get after SavePNG()


I'm not sure what's causing this. I tried changing font faces, and sometimes it creates blank images but never writes braille patterns. Can you guide me around this issue? Or perhaps tell me if the problem is on my side?

TheZoraiz commented 3 years ago

Turns out, the fontface I was using didn't support unicode and braille patterns. Changing the font fixed this issue.