GTK 4.24 Graphical Toolkit Released

After six months of development published the release of a multi-platform toolkit for creating a graphical user interface – GTK 4.24. GTK 4 is being developed as part of a development process that attempts to provide application developers with a stable and supported API for several years that can be used without fear of having to rewrite applications every six months due to API changes in the next GTK branch.

Notable improvements include improvements in GTK 4.24:

  • Added the ability to snap content to the boundaries of the physical pixels of the device, which significantly improved rendering quality when using fractional scaling on screens with high pixel density (HiDPI). To enable alignment of the placement of logical pixels along the boundaries of physical pixels, the function gtk_snapshot_set_snap() is proposed.

    By default, the new mode is not enabled due to jitter during slow animation and scrolling, caused by rendering in whole pixels. Areas of application for snapping include hiding visible seams between sprites in some games on screens with fractional scaling, clearer display of images due to pixel-to-pixel mapping, and the use of hardware graphics acceleration methods that require strict alignment of content to pixels.

  • Development of the built-in engine for rendering and parsing images in SVG format, as well as the Gtk.Svg, which allows you to do without external dependencies when drawing vector icons and resources. The new version adds the GtkSvgWidget
/Reports, release notes, official announcements.