mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
a6afa86d853e3dfe7da320e87dea823d271b790c
This change allows font collection files (extensions .ttc or .otc) to be used as a text.Face. These files contain an ordered list of SFNT fonts, each supporting a maximum of 2^16 glyphs. When used as a text.Face, each rune in the string to layout or render will be assigned to the first font with a glyph for that rune, or to the replacement character from the first font in the file otherwise. With this change, it is possible to support multiple unicode planes in a single text.Face by using a Collection with more than one internal SFNT file. For example, it is now possible to display characters from the basic multilingual plane and emoji in a single widget.Label by loading an appropriate OTC file. Fixes gio#104 Signed-off-by: tainted-bit <sourcehut@taintedbit.com>
Gio
Immediate mode GUI programs in Go for Android, iOS, macOS, Linux, FreeBSD, OpenBSD, Windows, and WebAssembly (experimental). See the project page gioui.org for documentation and more information.
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 unofficial GitHub mirror is kindly maintained by Larry Clapp.
Description
Languages
Go
89.6%
C
7%
Java
1.7%
Objective-C
1.6%