Hello ,
is it possible to assign a custom font to a textfield ?
I load the font with:
fx.LoadFont(File.DirAssets,"TitilliumWeb-SemiBold.ttf",14)
When I list the font family names it is "Titillium Web" and it works with labels. but when i try :
CSSUtils.SetStyleProperty(txtlive,"-fx-font-family","Titillium Web")
It does not work. What is my mistake?
TY
is it possible to assign a custom font to a textfield ?
I load the font with:
fx.LoadFont(File.DirAssets,"TitilliumWeb-SemiBold.ttf",14)
When I list the font family names it is "Titillium Web" and it works with labels. but when i try :
CSSUtils.SetStyleProperty(txtlive,"-fx-font-family","Titillium Web")
It does not work. What is my mistake?
TY