North Carolina
Freelance engineer working to make portable GUIs easy and pleasant.
I'm one of Gio's two maintainers, and I focus on making the text and widget APIs great.
Some other fun projects:
If you get value out of my work, please consider sponsoring me on Liberapay or GitHub.
I am also available for hire.
From Chris Waldon to ~eliasnaur/gio
Hi all, The latest news describing changes in Gio v0.5.0 is available here: https://gioui.org/news/2024-02 Cheers, Chris
From Chris Waldon to ~whereswaldon/arbor-dev
Finally got around to merging this; thank you!
From Chris Waldon to ~eliasnaur/gio
> I am new to GIO, love the performance, want to build an app, > however I wonder how to use mobile specific feature like face id? Welcome! Some platform features are exposed via packages in gio-x, but face id is not one of those. In order to invoke that code, you'll need to write some native Objective-C/Swift that you can invoke from your application. You can see examples of doing that in gio-x: https://git.sr.ht/~whereswaldon/gio-x/tree/main/item/haptic/haptic_ios.go https://git.sr.ht/~whereswaldon/gio-x/tree/main/item/notify/macos/notify_macos.go Cheers,
From Chris Waldon to ~eliasnaur/gio
On Fri, Feb 9, 2024 at 1:44 AM sewn <sewn@disroot.org> wrote: > > How are you supposed to retrieve the scaling factor? The system.FrameEvent.Metrics field provides everything you should need for that.
From Chris Waldon to ~gioverse/chat
Thanks Jack; I can only facepalm at this. Merged.
From Chris Waldon to ~eliasnaur/gio
> Below are the data from a heap profile captured just before the shaper > draws any text: This memory utilization looks reasonable to me. We've loaded indices of the supported text for all of your system fonts, but haven't loaded the fonts themselves. What this tells us is that the memory footprint you're seeing is just the cost of holding parsed fonts *that your application is using* in RAM. You're probably seeing greater memory utilization now because your application is succeeding in displaying glyphs from system fonts that previously were never displayed (emoji, for example). I think this is working as expected, sadly. There isn't a simple way
From Chris Waldon to ~eliasnaur/gio
On Mon, Jan 29, 2024 at 11:14 AM zhang zj <zhangzj33@gmail.com> wrote: > > Hi, Chris, > > Here are the top heap contributors of a recent sampling: > > Top20 inuse_space: > > pprof) top20 > Showing nodes accounting for 239074.75kB, 97.46% of 245296.60kB total > Dropped 549 nodes (cum <= 1226.48kB) > Showing top 20 nodes out of 70 > flat flat% sum% cum cum% > 207089.25kB 84.42% 84.42% 207089.25kB 84.42%
From Chris Waldon to ~eliasnaur/gio
Hi! > I have been using Gio for a while now. In my application text > rendering is one of the most > important thing (it's an editor). One problem I observed by now is > that when I enable system > fonts loading feature of the text shaper, hundreds of more megabytes > will be consumed. BTW, > I am using MacOS and there's more than 300 typefaces pre-installed in > the system. > > I know that there's a font meta info cache used by the typesetting > package. I have no idea if the extra > memory is consumed by the in memory cache or not. And if it is not, > what is the cause of the overhead?
From Chris Waldon to ~eliasnaur/gio-patches
> btw, I'm not on this list. Please include me on any replies. Just a drive-by > patch to let me use an app that uses gio :) Thank you; merged!
From Chris Waldon to ~whereswaldon/watt-wise-devel
Thanks; merged!