[pango/pango2: 84/301] serializer: Handle line spacing attributes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 84/301] serializer: Handle line spacing attributes
- Date: Wed, 22 Jun 2022 15:53:35 +0000 (UTC)
commit e7f996070c412061b303b6b01b4acbade9de691e
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 b8e19543d..6f2efec80 100644
--- a/pango/serializer.c
+++ b/pango/serializer.c
@@ -348,6 +348,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;
@@ -1072,6 +1073,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]