[librsvg: 15/18] (#17): Render text-decoration:overline
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 15/18] (#17): Render text-decoration:overline
- Date: Tue, 26 Oct 2021 02:33:05 +0000 (UTC)
commit 80a72e607443b4b05d28a4387fc994aacb332218
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Oct 25 20:32:01 2021 -0500
(#17): Render text-decoration:overline
It was parsed, but not rendered.
This requires Pango 1.46.
Fixes https://gitlab.gnome.org/GNOME/librsvg/-/issues/17
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/621>
src/text.rs | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/text.rs b/src/text.rs
index 84fa2d85..fcff557d 100644
--- a/src/text.rs
+++ b/src/text.rs
@@ -1232,6 +1232,10 @@ fn add_pango_attributes(
props.letter_spacing,
)));
+ if props.text_decoration.overline {
+ attributes.push(pango::Attribute::new_overline(pango::Overline::Single));
+ }
+
if props.text_decoration.underline {
attributes.push(pango::Attribute::new_underline(pango::Underline::Single));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]