gtk/demos
Matthias Clasen f5159e1ecb gsk: Make glyph parsing more flexible
It is a bit annoying that one has to specify the glyph width
when specifying glyphs numerically for a text node, since this
information really is part of the font.

Make the parser more flexible, and allow to specify just the glyph
ids, without an explicit width. In this case, the width will be
determined from the font.

With this, glyphs can now be specified in any of the follwing
ways:

glyphs: "ABC";              (ASCII)
glyphs: 23, 45, 1001;       (Glyph IDs)
glyphs: 23 10, 100 11.1;    (Glyph IDs and advance widths)
glyphs: 23 10 1 2 color;    (with offsets and flags)

Tests have been updated to cover these variants.
2024-03-01 11:22:28 -05:00
..
constraint-editor constraint-editor: Deprecation cleanup 2023-08-03 22:15:27 -04:00
gtk-demo general: Fix leaks 2024-02-27 22:01:41 +03:00
icon-browser build: Move and rename demo_conf.h header 2024-01-18 20:20:58 -05:00
node-editor gsk: Make glyph parsing more flexible 2024-03-01 11:22:28 -05:00
print-editor build: Move and rename demo_conf.h header 2024-01-18 20:20:58 -05:00
widget-factory build: Move and rename demo_conf.h header 2024-01-18 20:20:58 -05:00
meson.build build: Move and rename demo_conf.h header 2024-01-18 20:20:58 -05:00