~eliasnaur/giouiorg

df7eb5f9cf412ba311064b782e625a2f3900f68e — Chris Waldon 1 year, 4 months ago 37ae98a
content/news: add november newsletter

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
2 files changed, 65 insertions(+), 0 deletions(-)

A content/news/2022-11.md
M content/news/index.tmpl
A content/news/2022-11.md => content/news/2022-11.md +64 -0
@@ 0,0 1,64 @@
---
title: Newsletter, November 2022
shorttitle: November 2022
subtitle: Bidirectional text is eating the world
---

It's seemingly been a quiet month in the Gio project. Not many patches have landed in our repos, and one might almost think that nothing was happening. However, this quiescence is actually the result of Elias and I iterating heavily on Gio's upcoming text API. Adding both font fallback and bidirectional text support to Gio has stretched our text abstractions to the breaking point, so we've had to rethink them this month. That work has primarily been on the gio-patches mailing list, so you won't have seen it unless you're subscribed.

I waited to write this newsletter until finishing the most recent iteration of the patches. If you'd like to see what the changes look like, you can do the following in your local git clone of Gio:

```
curl -s https://lists.sr.ht/~eliasnaur/gio-patches/patches/37506/mbox | git am -3
```

I would normally just share the link to the patches on sourcehut, but it seems that the diffstat is so complex that sourcehut times out trying to render it and displays a 502 instead.

Once this work lands, Gio applications will automatically handle bidirectional text (provided that appropriate fonts are loaded). You won't have to change your application code unless you've written a widget that directly manipulates a text.Shaper. If your application uses the text widgets from package widget, no change will be needed.

## Sponsorship

This month, Gio thanks the following organizations and community members for their ongoing support!

Supporting the whole team:

- [Plato Team](https://www.platoapp.com/) via GitHub Sponsorship of Elias and Chris.
- [Tailscale](https://tailscale.com/) via OpenCollective.
- [Lucas Rodrigues](https://github.com/Inkeliz/) via GitHub Sponsorship of Gioui and Elias.
- [Denys Smirnov](https://github.com/dennwc) via OpenCollective.
- [Larry Clapp](https://github.com/theclapp) via GitHub Sponsorship of Elias and Chris.

Supporting a maintainer:

- [Matilda Tech](https://github.com/matildatech) via GitHub Sponsorship of Elias.
- [Fino Meng](https://github.com/finomeng) via GitHub Sponsorship of Elias.
- [Chris Waldon](https://github.com/whereswaldon) via GitHub Sponsorship of Elias.
- [Tom Ingleby](https://github.com/tingleby) via GitHub Sponsorship of Elias.
- [Tanguy Herrmann](https://github.com/dolanor) via GitHub Sponsorship of Elias.
- A number of anonymous community members.

Sponsorship money given to Gio enables Elias and I to cover the costs of running Gio's infrastructure, to pay for some of our time spent maintaining and improving Gio, and to plan for funding significant feature work. You can support Gio by contributing on [OpenCollective](https://opencollective.com/gioui) or [GitHub Sponsors](https://github.com/sponsors/gioui).

## Changes by repo

### core gio

Marko Kungla:

- **`app`**: wayland force redraw on config change. When applying window config on runtime, it is necessary to do full redraw in order to changed config option to apply correctly. This fixes a bug where e.g window size change renders next frame in updated dimensions while native window is not scaled yet since it was waiting for stage event to apply resize. [42b2174d](https://git.sr.ht/~eliasnaur/gio/commit/42b2174d)
- **`app`**: add app.ID exposed to the platform.. Allow app ID to be set by linger flag -X gioui.org/app.ID=%s so that wayland can group windows, search for ${gioui.org/app.ID}.desktop file and display application name. e.g. /usr/share/applications/${gioui.org/app.ID}.desktop ~/.local/share/applications/${appID}.desktop. [a22e0f52](https://git.sr.ht/~eliasnaur/gio/commit/a22e0f52)

Elias Naur:

- **`app`**: fix Windows IME caret positioning. Some IME editors don't send explicit GCS_CURSORPOS messages, in which case we should assume the cursor moves to the end of the composition string. [dee53b36](https://git.sr.ht/~eliasnaur/gio/commit/dee53b36)

Chris Waldon:

- **`widget`**: do not allow invalid utf8 in editor. This commit replaces invalid UTF8 codepoints with the replacement character when they are inserted into the editor. This ensures that the editor never moves the editing gap to an invalid location and reads its contents. [5c84cf7e](https://git.sr.ht/~eliasnaur/gio/commit/5c84cf7e)

### gio-x

Chris Waldon:

- **`richtext`**: make interactive spans obey constraints. This commit fixes a bug which used the wrong copy of the gtx when laying out interactive spans, resulting in their hit areas being massively inflated. [9da08d9](https://git.sr.ht/~whereswaldon/gio-x/commit/9da08d9)


M content/news/index.tmpl => content/news/index.tmpl +1 -0
@@ 3,6 3,7 @@ title: Newsletter
subtitle: Gioverse news
hidechildren: true
children:
    - "./2022-11"
    - "./2022-10"
    - "./2022-09"
    - "./2022-08"