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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • fx2.0
    • Affects Version/s: fx2.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported: