Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

These are valid points, I'm currently going through the dance of building a custom cross platform gui for mobilde+desktop tailored to my application. Proper localized text rendering is hard, Harfbuzz and Freetype are solid options to start with and are available on recent Linux desktops. I've abstracted the text rendering to replace Harfbuzz and Freetype with platform native libraries on Apple and Windows.

The renderer itself is abstracted and defaults to opengl 3.3 with a fallback to software rendering as last resort and to be portable.

Long story short: It's not easy but very possible to build a polished cross-platform GUI smaller than 1MB. My app binary currently compiles down to 135 KB on desktop, in the end I aim for less than 2 MB for the whole application.

However I wouldn't recommend this for most applications where a framework would be a faster option for a traditional GUI.



> I've abstracted the text rendering to replace Harfbuzz and Freetype with platform native libraries on Apple and Windows.

I hope your UI designers are happy with some text wrapping on one platform and not another because they have slightly different metrics even given the same font - for me this has never flown and I had to work to make things pixel-perfect across mac / windows / linux a few times now which definitely does not work when using the platform renderers.


This is dynamically linked to all those libraries which must be installed. One of the points above is how small can you be without those dependencies. All Fyne apps need is a working graphics driver capable of OpenGL spec from 2011.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: