go.*: update gio, gio-x, and typesetting
This commit picks up v0.2.0 of gio and gio-x, and the typesetting version that
is known to be good with them.
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
go.*,all: update all examples for system fonts API
This commit updates every example to be compatible with the new system font
text API. Mostly this entailed updating how they constructed text shapers and,
in a few cases, how they requested monospace fonts.
While here, I fixed a few bugs and alignment problems that jumped out at me.
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
component/pages/menu: improve menu page responsiveness
This commit restructures the menu page to ensure that the content areas
resize more gracefully.
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
go.*,bidi,fps-table,gophers,kitchen,markdown,textfeatures: update text usage
This commit updates references to font properties to use the symbols in gioui.org/font
instead of gioui.org/text, handling the breaking change from gioui.org@f77bf9a42.
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
go.*,component: update component TextField usage
This commit updates the component demo's TextField page to use the correct
alignment option after gioui.org/x@b853331
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
textfeatures: add simple demo for color glyphs and truncation
This commit adds a simple program demonstrating how to load a color emoji font,
how to configure a custom text truncator, and how the truncator behaves at
various max widths.
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
bidi: add example with bidi text
This commit adds a simple example with an editor pre-populated with
bidirectional text. It serves as an example both of how to load extra
fonts, font fallback, and how bidirectional text functions in the
editor.
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>