1 Reply Latest reply on Mar 22, 2012 7:52 PM by jsmith

    can't apply -fx-font-weight: bold;

      Hi. I'm trying to apply this style to Labels :

      .label {
      -fx-text-fill: gray;
      -fx-font-weight: bold;

      The gray fill is ok , but bold weight doesn't work.

      I'm using MacOS JavaFX 2.1 b17.

      Am i doing something wrong ?


      Edited by: mschoenfelder on 2012-03-22 11:27
        • 1. Re: can't apply -fx-font-weight: bold;
          I can't reproduce this, the -fx-font-weight:bold style works fine for me when set either in code via setStyle or in the exact same external stylesheet you supplied (WinXPsp3, JavaFX 2.1b17, JDK7u4ea).

          My guess is either:
          1. It is a Mac specific bug.
          2. The default font used by JavaFX on the Mac does not support bold (seems really unlikely).
          3. You are not copying the correct version of your stylesheet to the binary output directory you are running the application from (most likely).
          4. You are not correctly loading the required stylesheet.
          5. You are otherwise overwriting the style somewhere else.