gtk/demos/node-editor
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
..
data demos: icons for Print and Node Editors 2020-07-13 07:30:46 -04:00
gtkrendererpaintable.c node-editor: Plug a memory leak 2023-04-27 13:42:03 +02:00
gtkrendererpaintableprivate.h node-editor: Convert headers to #pragma once 2023-12-20 09:51:19 -05:00
help-window.ui nodeeditor: Make the help window wide enough 2021-04-11 12:50:34 -04:00
main.c
meson.build build: Move and rename demo_conf.h header 2024-01-18 20:20:58 -05:00
node-editor-application.c build: Move and rename demo_conf.h header 2024-01-18 20:20:58 -05:00
node-editor-application.h node-editor: Convert headers to #pragma once 2023-12-20 09:51:19 -05:00
node-editor-window.c node-editor: Make crash handling more robust 2024-02-06 18:41:47 +00:00
node-editor-window.h node-editor: Add autosave 2024-01-12 20:50:34 -05:00
node-editor-window.ui node-editor: Don't help too much 2024-02-12 14:19:21 -05:00
node-editor.gresource.xml node-editor: Use the non-devel icon 2021-02-10 07:44:59 -05:00
node-format.md gsk: Make glyph parsing more flexible 2024-03-01 11:22:28 -05:00
org.gtk.gtk4.NodeEditor.appdata.xml.in node-editor: Add things 2022-05-07 07:18:36 -04:00
org.gtk.gtk4.NodeEditor.desktop node-editor: Add things 2022-05-07 07:18:36 -04:00