View Single Post
Old 11-11-2020, 11:08 PM   #4
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,805
Karma: 7423683
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by nihilazo View Post
but the only way I have found to draw to the screen from a go program is through fbink (which is great but a little limited for what I'd like)
If the issue is that you don't want to call FBInk with os.Exec, sherman has made a CGO wrapper for it. If you want to avoid FBInk entirely, you may have luck porting Plato's FB and input handling to Go directly since it's quite well written and easy to read.

If the issue is that you want more sophisticated text layout and rendering, note that you'll still need to deal with it no matter what you use (unless you're using a GUI toolkit with support for it, or embedding a minimal browser engine to do the rendering for you). Personally, I'd use Pango/Cairo, but Skia is another option.
geek1011 is offline   Reply With Quote