forked from AuroraMiddleware/gtk
rendernodeparser: Don't use %g when writing file
%g is locale dependent and can add "," where "." should be. Use string_append_double() instead.
This commit is contained in:
parent
c09718b731
commit
5470a1344d
@ -2375,16 +2375,16 @@ gsk_text_node_serialize_glyphs (GskRenderNode *node,
|
|||||||
g_string_set_size (str, 0);
|
g_string_set_size (str, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_string_append_printf (p, "%u %g",
|
g_string_append_printf (p, "%u ", glyphs[i].glyph);
|
||||||
glyphs[i].glyph,
|
string_append_double (p, (double) glyphs[i].geometry.width / PANGO_SCALE);
|
||||||
(double) glyphs[i].geometry.width / PANGO_SCALE);
|
|
||||||
if (!glyphs[i].attr.is_cluster_start ||
|
if (!glyphs[i].attr.is_cluster_start ||
|
||||||
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, " %g %g",
|
g_string_append (p, " ");
|
||||||
(double) glyphs[i].geometry.x_offset / PANGO_SCALE,
|
string_append_double (p, (double) glyphs[i].geometry.x_offset / PANGO_SCALE);
|
||||||
(double) glyphs[i].geometry.y_offset / PANGO_SCALE);
|
g_string_append (p, " ");
|
||||||
|
string_append_double (p, (double) glyphs[i].geometry.y_offset / PANGO_SCALE);
|
||||||
if (!glyphs[i].attr.is_cluster_start)
|
if (!glyphs[i].attr.is_cluster_start)
|
||||||
g_string_append (p, " same-cluster");
|
g_string_append (p, " same-cluster");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user