
6 people contributed this month with 56 commits.
Font selection got a major upgrade. Until now we had to refer to an individual font ttf.
Now Font acts like a query that searches for a matching Font.Source:
.font = .theme(.heading).font = Font.theme(.heading).larger(2).font = dvui.themeGet().font_mono.withWeight(.bold).withStyle(.italic)dvui.Theme has 4 fonts (body, heading, title, mono) and grew an embedded_fonts field so that font sources can be tied to the theme that requires them.
For now we still only have a single pool of Font.Source that is internal to dvui. In the future we hope to extend this to be able to query for system fonts.
We are now bundling the tree-sitter library, and TextEntryWidget gained a tree_sitter option.
The usage code is responsible for providing:
dvui.OptionsRight now an example is only in the main window of the “app” example (like zig build sdl3-app), but eventually we will figure out a way to integrate it into the demo window.
This integrates with .cache_layout = true to provide incremental edit parse updates and good performance on large documents.
Any feedback would be welcome!
Thank you to everyone who asked questions, filed issues, and contributed!