mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
f5159e1ecb
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.
7 lines
157 B
Plaintext
7 lines
157 B
Plaintext
text {
|
|
color: rgb(50,50,50);
|
|
font: "Cantarell 14px";
|
|
glyphs: "N", 430, 406, 417 7, 772 4, 783 5, 783 5, 793 6 0 0 same-cluster;
|
|
offset: 0 32.0186;
|
|
}
|