[pango/pango2: 94/201] serializer: Handle line spacing attributes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 94/201] serializer: Handle line spacing attributes
- Date: Sat, 11 Jun 2022 02:22:29 +0000 (UTC)
commit 67004382d81cfe209e44c020121bf38762d5697a
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 b8e19543..6f2efec8 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]