The attached program calls setFont() on the Text node and then adds it to the scene.
In this case the CSS default style is applied after the call by the developer to set the Font.
ie Tracing shows that Text.impl_cssSet(..) is called after the developer's set call and
disregards that the developer intended something other than the default value.
At a minimum a default CSS value should not over-ride anything other than a value that
has been "defaulted" by the developer. Any explicit setting (even to the default value)
should be honoured.
In this case the CSS default style is applied after the call by the developer to set the Font.
ie Tracing shows that Text.impl_cssSet(..) is called after the developer's set call and
disregards that the developer intended something other than the default value.
At a minimum a default CSS value should not over-ride anything other than a value that
has been "defaulted" by the developer. Any explicit setting (even to the default value)
should be honoured.
- duplicates
-
JDK-8109701 CSS overwrites user defined values
- Closed
-
JDK-8110786 Font not applied on first control
- Closed
- relates to
-
JDK-8111513 Prism incorrectly render FontPosture.ITALIC and FontWeight.BOLD
- Closed