MrKim Well-Known Member Licensed User Longtime User Jul 11, 2017 #1 New to B4j scrounged around and found code to change the font which I modifed to this: ta.Style = "-fx-font-family: '" & family & "'" but that didn't help with font size but more scrounging and I found this: ta.Style = "-fx-font-size: 1.0em; -fx-font-family: '" & family & "'" My question is, is there somewhere where all of these '-fx' commands are listed along with syntax and perhaps what properties of what panes they apply to?
New to B4j scrounged around and found code to change the font which I modifed to this: ta.Style = "-fx-font-family: '" & family & "'" but that didn't help with font size but more scrounging and I found this: ta.Style = "-fx-font-size: 1.0em; -fx-font-family: '" & family & "'" My question is, is there somewhere where all of these '-fx' commands are listed along with syntax and perhaps what properties of what panes they apply to?
K keirS Well-Known Member Licensed User Longtime User Jul 11, 2017 #2 Yes the catchly titled Java FX CSS Reference Guide Upvote 0
MrKim Well-Known Member Licensed User Longtime User Jul 11, 2017 #3 keirS said: Yes the catchly titled Java FX CSS Reference Guide Click to expand... Took a quick look, not sure whether to thank you or not. Upvote 0
keirS said: Yes the catchly titled Java FX CSS Reference Guide Click to expand... Took a quick look, not sure whether to thank you or not.
Erel B4X founder Staff member Licensed User Longtime User Jul 12, 2017 #4 1. Don't change the Style property directly. Use CSSUtils instead. 2. You can change the font of most controls with the designer. Upvote 0
1. Don't change the Style property directly. Use CSSUtils instead. 2. You can change the font of most controls with the designer.