forked from AuroraMiddleware/gtk
Merge branch 'fix-node-glyphs' into 'master'
gsk: Fix serialization of glyphs Closes #3496 See merge request GNOME/gtk!2982
This commit is contained in:
commit
478d1f71e3
@ -2692,7 +2692,7 @@ render_node_print (Printer *p,
|
|||||||
glyphs[i].geometry.x_offset != 0 ||
|
glyphs[i].geometry.x_offset != 0 ||
|
||||||
glyphs[i].geometry.y_offset != 0)
|
glyphs[i].geometry.y_offset != 0)
|
||||||
{
|
{
|
||||||
g_string_append_printf (p->str, "%g %g",
|
g_string_append_printf (p->str, " %g %g",
|
||||||
(double) glyphs[i].geometry.x_offset / PANGO_SCALE,
|
(double) glyphs[i].geometry.x_offset / PANGO_SCALE,
|
||||||
(double) glyphs[i].geometry.y_offset / PANGO_SCALE);
|
(double) glyphs[i].geometry.y_offset / PANGO_SCALE);
|
||||||
if (!glyphs[i].attr.is_cluster_start)
|
if (!glyphs[i].attr.is_cluster_start)
|
||||||
|
6
testsuite/gsk/nodeparser/text.node
Normal file
6
testsuite/gsk/nodeparser/text.node
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
text {
|
||||||
|
color: rgb(50,50,50);
|
||||||
|
font: "Cantarell 11";
|
||||||
|
glyphs: "N", 430 5, 406 8, 417 7, 772 4, 783 5, 783 5, 793 6 0 0 same-cluster;
|
||||||
|
offset: 0 32.0186;
|
||||||
|
}
|
6
testsuite/gsk/nodeparser/text.ref.node
Normal file
6
testsuite/gsk/nodeparser/text.ref.node
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
text {
|
||||||
|
color: rgb(50,50,50);
|
||||||
|
font: "Cantarell 11";
|
||||||
|
glyphs: "N", 430 5, 406 8, 417 7, 772 4, 783 5, 783 5, 793 6 0 0 same-cluster;
|
||||||
|
offset: 0 32.0186;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user