diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-03-30 20:08:29 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-03-30 21:20:36 -0400 |
commit | 5ce5b8f5b7dc4616d0d88454a23dd3bd89902265 (patch) | |
tree | 734cdc5b8fa64a09f5311c14f63cf1bb2dcfc1a4 /pango/pango-layout.c | |
parent | 708e7d1be90ccf92c17473a78218e7f43f059309 (diff) | |
download | pango-5ce5b8f5b7dc4616d0d88454a23dd3bd89902265.tar.gz |
Add dashed and dotted lineslines
Extend the PangoUnderline and PangoOverline enumerations to
cover dashed and dotted variants of the various lines, add
api to PangoRenderer to render such lines, and implement it
in the cairo renderer.
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r-- | pango/pango-layout.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 1f86150e..22924f88 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -5953,13 +5953,23 @@ pango_layout_get_item_properties (PangoItem *item, break; case PANGO_UNDERLINE_SINGLE: case PANGO_UNDERLINE_SINGLE_LINE: + case PANGO_UNDERLINE_SINGLE_DOTTED: + case PANGO_UNDERLINE_SINGLE_LINE_DOTTED: + case PANGO_UNDERLINE_SINGLE_DASHED: + case PANGO_UNDERLINE_SINGLE_LINE_DASHED: properties->uline_single = TRUE; break; case PANGO_UNDERLINE_DOUBLE: case PANGO_UNDERLINE_DOUBLE_LINE: + case PANGO_UNDERLINE_DOUBLE_DOTTED: + case PANGO_UNDERLINE_DOUBLE_LINE_DOTTED: + case PANGO_UNDERLINE_DOUBLE_DASHED: + case PANGO_UNDERLINE_DOUBLE_LINE_DASHED: properties->uline_double = TRUE; break; case PANGO_UNDERLINE_LOW: + case PANGO_UNDERLINE_LOW_DOTTED: + case PANGO_UNDERLINE_LOW_DASHED: properties->uline_low = TRUE; break; case PANGO_UNDERLINE_ERROR: @@ -5976,6 +5986,8 @@ pango_layout_get_item_properties (PangoItem *item, switch (((PangoAttrInt *)attr)->value) { case PANGO_OVERLINE_SINGLE: + case PANGO_OVERLINE_SINGLE_DASHED: + case PANGO_OVERLINE_SINGLE_DOTTED: properties->oline_single = TRUE; break; default: |