Update nodeparser tests

The node serialization code now prints fonts with pixel sizes.
Update affected tests.
This commit is contained in:
Matthias Clasen 2024-02-27 23:46:33 -05:00
parent b7422c0f62
commit 9fd5558acd
10 changed files with 43 additions and 43 deletions

View File

@ -1,4 +1,4 @@
text {
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: "Hello";
}

View File

@ -56,7 +56,7 @@ container {
transform {
child: text {
color: rgb(46,52,54);
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: "Disabled";
offset: 145 18;
}
@ -120,7 +120,7 @@ container {
transform {
child: text {
color: rgb(46,52,54);
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: "Enabled";
offset: 147 18;
}
@ -163,7 +163,7 @@ container {
transform {
child: text {
color: rgb(46,52,54);
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: "Disabled";
offset: 145 18;
}
@ -209,7 +209,7 @@ container {
transform {
child: text {
color: rgb(46,52,54);
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: "Enabled";
offset: 147 18;
}
@ -272,7 +272,7 @@ container {
transform {
child: text {
color: rgb(46,52,54);
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: "Disabled";
offset: 123 18;
}

View File

@ -57,7 +57,7 @@ container {
transform: translate(56, 0);
child: text {
color: rgb(46,52,54);
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: "Disabled";
offset: 145 18;
}
@ -122,7 +122,7 @@ container {
transform: translate(56, 0);
child: text {
color: rgb(46,52,54);
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: "Enabled";
offset: 147 18;
}
@ -165,7 +165,7 @@ container {
transform: translate(56, 0);
child: text {
color: rgb(46,52,54);
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: "Disabled";
offset: 145 18;
}
@ -211,7 +211,7 @@ container {
transform: translate(56, 0);
child: text {
color: rgb(46,52,54);
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: "Enabled";
offset: 147 18;
}
@ -274,7 +274,7 @@ container {
transform: translate(78, 0);
child: text {
color: rgb(46,52,54);
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: "Disabled";
offset: 123 18;
}

View File

@ -1,5 +1,5 @@
text {
color: rgba(255,0,0,0.533333);
font: "Noto Sans 300";
font: "Noto Sans 300px";
glyphs: 50 312, 2712 0 -156 -29 color;
}

View File

@ -1,5 +1,5 @@
text {
font: "text-mixed-color 7.5" url("data:font/ttf;base64,\
font: "text-mixed-color 10px" url("data:font/ttf;base64,\
AAEAAAAKAIAAAwAgQ09MUgATAEEAAAJ8AAAALENQQUwB/wATAAACqAAAABpjbWFwAHcAPQAAATwA\
AAA0Z2x5Zu8g4kAAAAGEAAAA0mhlYWQmofyJAAAArAAAADZoaGVhDAEEAgAAAOQAAAAkaG10eAQA\
AQAAAAEoAAAAFGxvY2EAyAD5AAABcAAAABRtYXhwAAwACQAAAQgAAAAgbmFtZX7VdrQAAAJYAAAA\
@ -18,6 +18,6 @@ AAEAAwAAAA4AAAAA//8A/wD//wAA/wAA\
}
text {
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: "Hello";
}

View File

@ -1,5 +1,5 @@
text {
font: "text-mixed-color 7.5" url("data:font/ttf;base64,AAEAAAAKAIAAAwAgQ09MUgATAEEAAAJ8AAAALENQQUwB/wATAAACqAAAABpjbWFwAHcAPQAAATwA\
font: "text-mixed-color 10px" url("data:font/ttf;base64,AAEAAAAKAIAAAwAgQ09MUgATAEEAAAJ8AAAALENQQUwB/wATAAACqAAAABpjbWFwAHcAPQAAATwA\
AAA0Z2x5Zu8g4kAAAAGEAAAA0mhlYWQmofyJAAAArAAAADZoaGVhDAEEAgAAAOQAAAAkaG10eAQA\
AQAAAAEoAAAAFGxvY2EAyAD5AAABcAAAABRtYXhwAAwACQAAAQgAAAAgbmFtZX7VdrQAAAJYAAAA\
IgABAAAAARmajs74k18PPPUAAggAAAAAAOHCPQAAAAAA4cpY+QAAAAAEAAgAAAAAAQACAAAAAAAA\
@ -16,6 +16,6 @@ AAEAAwAAAA4AAAAA//8A/wD//wAA/wAA\
glyphs: 7 10;
}
text {
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: "Hello";
}

View File

@ -1,6 +1,6 @@
<data>:21:32-36: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
<data>:55:24-69:3: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
<data>:74:24-33: error: GTK_CSS_PARSER_ERROR_SYNTAX
<data>:79:24-38: error: g-io-error-quark 15
<data>:84:24-47: error: g-io-error-quark 1
<data>:89:24-62: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
<data>:21:33-37: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
<data>:55:26-69:3: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
<data>:74:26-35: error: GTK_CSS_PARSER_ERROR_SYNTAX
<data>:79:26-40: error: g-io-error-quark 15
<data>:84:26-49: error: g-io-error-quark 1
<data>:89:26-64: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE

View File

@ -1,5 +1,5 @@
text {
font: "text-mixed-color 7.5" url("data:font/ttf;base64,\
font: "text-mixed-color 10px" url("data:font/ttf;base64,\
AAEAAAAKAIAAAwAgQ09MUgATAEEAAAJ8AAAALENQQUwB/wATAAACqAAAABpjbWFwAHcAPQAAATwA\
AAA0Z2x5Zu8g4kAAAAGEAAAA0mhlYWQmofyJAAAArAAAADZoaGVhDAEEAgAAAOQAAAAkaG10eAQA\
AQAAAAEoAAAAFGxvY2EAyAD5AAABcAAAABRtYXhwAAwACQAAAQgAAAAgbmFtZX7VdrQAAAJYAAAA\
@ -18,7 +18,7 @@ AAEAAwAAAA4AAAAA//8A/wD//wAA/wAA\
}
text {
font: "text-mixed-color 7.5" url("data:font/ttf;base64,\
font: "text-mixed-color 10px" url("data:font/ttf;base64,\
AAEAAAAKAIAAAwAgQ09MUgATAEEAAAJ8AAAALENQQUwB/wATAAACqAAAABpjbWFwAHcAPQAAATwA\
AAA0Z2x5Zu8g4kAAAAGEAAAA0mhlYWQmofyJAAAArAAAADZoaGVhDAEEAgAAAOQAAAAkaG10eAQA\
AQAAAAEoAAAAFGxvY2EAyAD5AAABcAAAABRtYXhwAAwACQAAAQgAAAAgbmFtZX7VdrQAAAJYAAAA\
@ -37,22 +37,22 @@ AAEAAwAAAA4AAAAA//8A/wD//wAA/wAA\
}
text {
font: "text-mixed-color 7.5";
font: "text-mixed-color 10px";
glyphs: 7 10;
}
text {
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: "Hello";
}
text {
font: "Demon Cat 11";
font: "Demon Cat 15px";
glyphs: "Hello";
}
text {
font: "Demon Cat 11" url("data:font/ttf;base64,\
font: "Demon Cat 15px" url("data:font/ttf;base64,\
AAEAAAAKAIAAAwAgQ09MUgATAEEAAAJ8AAAALENQQUwB/wATAAACqAAAABpjbWFwAHcAPQAAATwA\
AAA0Z2x5Zu8g4kAAAAGEAAAA0mhlYWQmofyJAAAArAAAADZoaGVhDAEEAgAAAOQAAAAkaG10eAQA\
AQAAAAEoAAAAFGxvY2EAyAD5AAABcAAAABRtYXhwAAwACQAAAQgAAAAgbmFtZX7VdrQAAAJYAAAA\
@ -71,21 +71,21 @@ AAEAAwAAAA4AAAAA//8A/wD//wAA/wAA\
}
text {
font: "Demon Cat 11" url(url());
font: "Demon Cat 15px" url(url());
glyphs: 7 10;
}
text {
font: "Demon Cat 11" url(not-a-url);
font: "Demon Cat 15px" url(not-a-url);
glyphs: 7 10;
}
text {
font: "Demon Cat 11" url(file:///not-a-file);
font: "Demon Cat 15px" url(file:///not-a-file);
glyphs: 7 10;
}
text {
font: "Demon Cat 11" url("data:font/ttf,Hello, I'm a Font");
font: "Demon Cat 15px" url("data:font/ttf,Hello, I'm a Font");
glyphs: 7 10;
}

View File

@ -1,5 +1,5 @@
text {
font: "text-mixed-color 7.5" url("data:font/ttf;base64,AAEAAAAKAIAAAwAgQ09MUgATAEEAAAJ8AAAALENQQUwB/wATAAACqAAAABpjbWFwAHcAPQAAATwA\
font: "text-mixed-color 10px" url("data:font/ttf;base64,AAEAAAAKAIAAAwAgQ09MUgATAEEAAAJ8AAAALENQQUwB/wATAAACqAAAABpjbWFwAHcAPQAAATwA\
AAA0Z2x5Zu8g4kAAAAGEAAAA0mhlYWQmofyJAAAArAAAADZoaGVhDAEEAgAAAOQAAAAkaG10eAQA\
AQAAAAEoAAAAFGxvY2EAyAD5AAABcAAAABRtYXhwAAwACQAAAQgAAAAgbmFtZX7VdrQAAAJYAAAA\
IgABAAAAARmajs74k18PPPUAAggAAAAAAOHCPQAAAAAA4cpY+QAAAAAEAAgAAAAAAQACAAAAAAAA\
@ -16,38 +16,38 @@ AAEAAwAAAA4AAAAA//8A/wD//wAA/wAA\
glyphs: 7 10;
}
text {
font: "text-mixed-color 7.5";
font: "text-mixed-color 10px";
glyphs: 7 10;
}
text {
font: "text-mixed-color 7.5";
font: "text-mixed-color 10px";
glyphs: 7 10;
}
text {
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: "Hello";
}
text {
font: "Noto Sans 11";
font: "Noto Sans 15px";
glyphs: "Hello";
}
text {
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: 7 10;
}
text {
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: 7 10;
}
text {
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: 7 10;
}
text {
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: 7 10;
}
text {
font: "Cantarell 11";
font: "Cantarell 15px";
glyphs: 7 10;
}

View File

@ -1,5 +1,5 @@
text {
color: rgba(255,0,0,0.533333);
font: "Noto Sans 300";
font: "Noto Sans 300px";
glyphs: 50 312, 2712 0 -156 -29;
}