[pango/line-breaker: 27/31] serializer: Handle line spacing attributes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/line-breaker: 27/31] serializer: Handle line spacing attributes
- Date: Mon, 24 Jan 2022 06:34:27 +0000 (UTC)
commit 8881fbf869194deb87ad0f5ed77b1f20773cc912
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jan 23 22:45:02 2022 -0500
serializer: Handle line spacing attributes
pango/serializer.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/pango/serializer.c b/pango/serializer.c
index 4ba8e690..3dd55368 100644
--- a/pango/serializer.c
+++ b/pango/serializer.c
@@ -356,6 +356,7 @@ add_attribute (GtkJsonPrinter *printer,
case PANGO_ATTR_SENTENCE:
case PANGO_ATTR_PARAGRAPH:
case PANGO_ATTR_ABSOLUTE_LINE_HEIGHT:
+ case PANGO_ATTR_LINE_SPACING:
gtk_json_printer_add_integer (printer, "value", ((PangoAttrInt*)attr)->value);
break;
@@ -1078,6 +1079,10 @@ attr_for_type (GtkJsonParser *parser,
attr = pango_attr_line_height_new_absolute ((int) gtk_json_parser_get_number (parser));
break;
+ case PANGO_ATTR_LINE_SPACING:
+ attr = pango_attr_line_spacing_new ((int) gtk_json_parser_get_number (parser));
+ break;
+
case PANGO_ATTR_TEXT_TRANSFORM:
attr = pango_attr_text_transform_new ((PangoTextTransform) parser_select_string (parser,
text_transform_names));
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]