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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.8
    • None
    • GVT Text
    • 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. Batik-Bug44531-ProposedFix.patch
          0.9 kB
          Helder Magalhães
        2. textlinespos.svg
          1 kB
          mg

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: