[pango/line-underline: 1/10] Add new PangoUnderline values



commit b8f068f8671a4d73a0a14d3db52c51a03a850cfa
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 19 23:52:27 2019 +0200

    Add new PangoUnderline values
    
    These will be used for 'line-wide' continuous underlines,
    as opposed to the current values, wich are per-run and
    jump up and down.

 pango/pango-attributes.h | 14 +++++++++++++-
 pango/pango-markup.c     |  3 ++-
 2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/pango/pango-attributes.h b/pango/pango-attributes.h
index 6202861a..ceb3236a 100644
--- a/pango/pango-attributes.h
+++ b/pango/pango-attributes.h
@@ -207,6 +207,15 @@ typedef enum
  *     as a possible mispelling; in some cases a contrasting color
  *     may automatically be used. This type of underlining is
  *     available since Pango 1.4.
+ * @PANGO_UNDERLINE_SINGLE_LINE: Like @PANGO_UNDERLINE_SINGLE, but
+ *     drawn continuously across multiple runs. This type
+ *     of underlining is available since Pango 1.46.
+ * @PANGO_UNDERLINE_DOUBLE_LINE: Like @PANGO_UNDERLINE_DOUBLE, but
+ *     drawn continuously across multiple runs. This type
+ *     of underlining is available since Pango 1.46.
+ * @PANGO_UNDERLINE_ERROR_LINE: Like @PANGO_UNDERLINE_ERROR, but
+ *     drawn continuously across multiple runs. This type
+ *     of underlining is available since Pango 1.46.
  *
  * The #PangoUnderline enumeration is used to specify
  * whether text should be underlined, and if so, the type
@@ -217,7 +226,10 @@ typedef enum {
   PANGO_UNDERLINE_SINGLE,
   PANGO_UNDERLINE_DOUBLE,
   PANGO_UNDERLINE_LOW,
-  PANGO_UNDERLINE_ERROR
+  PANGO_UNDERLINE_ERROR,
+  PANGO_UNDERLINE_SINGLE_LINE,
+  PANGO_UNDERLINE_DOUBLE_LINE,
+  PANGO_UNDERLINE_ERROR_LINE
 } PangoUnderline;
 
 /**
diff --git a/pango/pango-markup.c b/pango/pango-markup.c
index 6dce1b2e..49bc5dda 100644
--- a/pango/pango-markup.c
+++ b/pango/pango-markup.c
@@ -128,7 +128,8 @@
  *   integer between 1 and 65536 or a percentage value like '50%'.
  *
  * underline
- * : One of 'none', 'single', 'double', 'low', 'error'
+ * : One of 'none', 'single', 'double', 'low', 'error',
+ *   'single-line', 'double-line' or 'error-line'.
  *
  * underline_color
  * : The color of underlines; an RGB color


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]