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

Font related properties (at least "font-weight") seem to be no longer applied correctly via CSS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • fx2.0
    • fx1.2.3
    • javafx
    • JavaFX 1.2.3 under both WIndows Vista and MacOS X 10.6.2

      Under latest JavaFX 1.2.3 I'm still unable to correctly set various font properties via CSS:

      1. font-weight (aka "fontWeight") is not applied and seems to be silently ignored
      2. font-name (aka "fontName") usually cannot be applied at all ("Property .. not supported on ...Text")
      3. on font-family I'm really wondering how to use together with custom fonts from a fonts.mf (which defines full names and not just families)
      3. a selector for "javafx.scene.text.Font" seems to never apply at all, independent what properties I put there

      It might be that some of those problems are still related to my still less knowledge about JavaFX (so feel free to just ignore them),
      but at least on the font weight issue I'm rather sure there is something broken as one can already see from the famous Sudoko sample
      on the net:

      http://blogs.sun.com/rakeshmenonp/entry/javafx_sudoku_css_support
      http://javafx.com/samples/Sudoku/index.html

      Look at the screenshot: the title is bold as it should be. Then run the JavaFX application yourself via Webstart (I tried under WIndows
      Vista and MacOS X) and recognize that the title no longer is bold, although in the code there is an explicit "font-weight" (the code snippet
      is even directly on the webpage shown). So, it seems it worked in the past, but currently it no longer does.

            dgrieve David Grieve
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: