summaryrefslogtreecommitdiff
path: root/pango/pangocairo-render.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-22 11:46:07 +0200
committerMatthias Clasen <mclasen@redhat.com>2019-10-31 21:23:59 -0400
commitde0ab09cdbf5bdfa0caa365a22ac864e41838e48 (patch)
tree1651a116a7edd93defb2a608674d250d2505aedc /pango/pangocairo-render.c
parent580bb08df7d7d8ac42558cee5bf4d2fc7986327b (diff)
downloadpango-de0ab09cdbf5bdfa0caa365a22ac864e41838e48.tar.gz
renderer: Implement overlines
Implement overlines in PangoRenderer. This adds a new render part, and mirrors the machinery we have for underlines and strikethrough.
Diffstat (limited to 'pango/pangocairo-render.c')
-rw-r--r--pango/pangocairo-render.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pangocairo-render.c b/pango/pangocairo-render.c
index f4c57a87..e268ebd5 100644
--- a/pango/pangocairo-render.c
+++ b/pango/pangocairo-render.c
@@ -1051,6 +1051,7 @@ _pango_cairo_do_glyph_string (cairo_t *cr,
pango_renderer_set_color (renderer, PANGO_RENDER_PART_BACKGROUND, NULL);
pango_renderer_set_color (renderer, PANGO_RENDER_PART_UNDERLINE, NULL);
pango_renderer_set_color (renderer, PANGO_RENDER_PART_STRIKETHROUGH, NULL);
+ pango_renderer_set_color (renderer, PANGO_RENDER_PART_OVERLINE, NULL);
}
pango_renderer_draw_glyphs (renderer, font, glyphs, 0, 0);
@@ -1090,6 +1091,7 @@ _pango_cairo_do_glyph_item (cairo_t *cr,
pango_renderer_set_color (renderer, PANGO_RENDER_PART_BACKGROUND, NULL);
pango_renderer_set_color (renderer, PANGO_RENDER_PART_UNDERLINE, NULL);
pango_renderer_set_color (renderer, PANGO_RENDER_PART_STRIKETHROUGH, NULL);
+ pango_renderer_set_color (renderer, PANGO_RENDER_PART_OVERLINE, NULL);
}
pango_renderer_draw_glyph_item (renderer, text, glyph_item, 0, 0);