Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-812

[PATCH] underline-position in font-face has wrong sign

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: GVT Text
    • Labels:
    • Environment:
      Operating System: All
      Platform: All

      Description

      Attribute underline-position of element <font-face> seems to get negatived . Compared to attributes overline-position and strikethrough-position, this appears as unexpected. Apparently none of the SVG test fonts use underline-position and the default value looks fine. See getLineMetrics(int,int) in SVGGVTFont.java for the assignment to ulOffset without - in front of variable scale.

      It might also be nice if stroke-width of underline would scale with font-size.

        Attachments

        1. textlinespos.svg
          1 kB
          mg
        2. Batik-Bug44531-ProposedFix.patch
          0.9 kB
          Helder Magalhães

          Issue Links

            Activity

              People

              • Assignee:
                batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
                Reporter:
                markus+asf@gyger.org mg
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: