Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8114437

Label is apparently using Font.getDefault() rather than using CSS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • fx2.0
    • fx2.0
    • javafx

      To fix RT-13544, the default font on the Font class is now SansSerif.
      Several LabelSkinLayoutTest layout positioning tests began failing with "got 7.0 expected 6.0" type errors and
      a simple call to Label.getFont() showed that the default font was now SansSerif.

      Whether this is in Label, or CSS is unclear but per Jasper Font.getDefault() should have been over-ridden.

      The tests were fixed up by hardwiring the font being used but a test like that should not fail if a different font
      is used. So I think that someone also ought to take a close look at that.

            leifs Leif Samuelsson (Inactive)
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: