I have a custom ttf font . Need to create a java desktop application using javaFx to read data from the ttf file and use that data to draw text using the above font style .
I have found out that reading font meta data from the ttf font file can be done using a ttf parser. But I am not sure which pieces of data to extract from the ttf file so that I can draw the font on screen.
I am also confused as how best to draw the text . Java 2D API seems to be the most promising candidate . Besides how do I draw text using this font .
I have some across many posts but none have handled this topic directly . There are some post where a browser based solution has been provided . But as I said mine is a desktop based application.