spv: Support underlining in table styles.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 29 Oct 2020 05:29:40 +0000 (22:29 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 29 Oct 2020 05:29:40 +0000 (22:29 -0700)
doc/dev/spv-file-format.texi
src/output/spv/spv-table-look.c
src/output/spv/structure-xml.grammar

index 614a3483ce5913e76badb942e518eff6c975aa66..e001d9e5906e84b3580b642ebe8e7f48d1c97be8 100644 (file)
@@ -3660,6 +3660,7 @@ style
    :font-size?
    :font-style=(regular | italic)?
    :font-weight=(regular | bold)?
+   :font-underline=(none | underline)?
    :labelLocationVertical=(positive | negative | center)?
    :margin-bottom=dimension?
    :margin-left=dimension?
index 178c8ae5bfcb8505ca7641a4d609671110489868..d297c13981cbaa22bdb2ba4adf1d374a9ed00bb9 100644 (file)
@@ -158,7 +158,9 @@ spv_table_look_decode (const struct spvsx_table_properties *in,
         a->font_style.bold = s->font_weight == SPVSX_FONT_WEIGHT_BOLD;
       if (s->font_style)
         a->font_style.italic = s->font_style == SPVSX_FONT_STYLE_ITALIC;
-      a->font_style.underline = false;
+      if (s->font_underline)
+        a->font_style.underline
+          = s->font_underline == SPVSX_FONT_UNDERLINE_UNDERLINE;
       if (s->color >= 0)
         a->font_style.fg[0] = optional_color (
           s->color, (struct cell_color) CELL_COLOR_BLACK);
index 67e83a1be1230ef272cd35de06a58cfc0e9b3453..09288e8c7ee3aaa1abcf6c6c330f50a719e1b68d 100644 (file)
@@ -96,6 +96,7 @@ style
    :font-size?
    :font-style=(regular | italic)?
    :font-weight=(regular | bold)?
+   :font-underline=(none | underline)?
    :labelLocationVertical=(positive | negative | center)?
    :margin-bottom=dimension?
    :margin-left=dimension?