Uploaded image for project: 'GeoTools'
  1. GEOT-5564

Invalid CSS font-family causes LabelUnderlineTest to fail on OpenJDK

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 17-beta
    • Fix Version/s: 15.4, 16.1, 17-beta
    • Component/s: render
    • Labels:
      None
    • Environment:

      Description

      An invalid CSS font-family in underlineStyle.sld causes LabelUnderlineTest to fail on OpenJDK. Rendered output likely depends on local font fallback settings (e.g. whether Vera might be an alias for Bitstream Vera Serif or Bitstream Vera Sans or unknown):

      Failed tests: 
        LabelUnderlineTest.testLabelsUnderline:76 Images are visibly different, found 10686 different pixels, against a threshold of 1200
      You can add -Dorg.geotools.image.test.interactive=true to show a dialog comparing them (requires GUI support)
      

      I suspect that in underlineStyle.sld:

      <CssParameter name="font-family">Vera</CssParameter>
      

      should be

      <CssParameter name="font-family">Bitstream Vera Sans</CssParameter>
      

      as in all the other tests using Vera.ttf. The reference output also needs to be updated.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                bencaradocdavies Ben Caradoc-Davies
                Reporter:
                bencaradocdavies Ben Caradoc-Davies
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: