forked from joejulian/gio
01276238df2b541cf1c65ebdea6e297aeaa60da7
This commit replaces the previous opentype.Font with an implementation that uses the new text shaper. In order to keep the implementation simple, support for opentype font collections was dropped. It should be possible to re-add this support after some changes to the text shaper's line wrapping algorithm. To expand on the above, doing proper font fallback with harfbuzz will require splitting the input text on font glyph support boundaries, changing the input from a simple shaping.Input to []shaping.Input with each input matched against the font that supports its language. The line wrapping then needs to be able to properly consume that slice. Since the line wrapping algorithm is really complex, I'm hoping to defer that modification until this simple version is accepted. References: https://todo.sr.ht/~eliasnaur/gio/146 Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
Gio - https://gioui.org
Immediate mode GUI programs in Go for Android, iOS, macOS, Linux, FreeBSD, OpenBSD, Windows, and WebAssembly (experimental).
Installation, examples, documentation
Go to gioui.org.
Issues
File bugs and TODOs through the issue tracker or send an email to ~eliasnaur/gio@todo.sr.ht. For general discussion, use the mailing list: ~eliasnaur/gio@lists.sr.ht.
Contributing
Post discussion to the mailing list and patches to gio-patches. No Sourcehut account is required and you can post without being subscribed.
See the contribution guide for more details.
An official GitHub mirror is available.
Description
Languages
Go
89.6%
C
7%
Java
1.7%
Objective-C
1.6%