mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
a6afa86d85
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>