How to add font styling tags to text in JavaFX?

116 Views Asked by At

I am creating an application in which i need to add font styling tags to text like this.

bold        :<b>bold</b>
italic      :<i>italic</i>
underline   :<u>underline</u>
font colour :<font color="#ff0000"> sfsg </font>
font size   :<font size="50.5"> asdasd </font>
font style  :<font face="consolas">Aorion</font>

The HTMLEditor in javafx contains many extra buttons which i dont need. How can i remove those extra buttons or what can be an alternative implementation?

0

There are 0 best solutions below