As I had suggested, the font sizes were different, and the font size in the last div was identical to the font size in the nodes I referred to at the beginning. Within the first div the font size was in pt, and within the second one – in px. ![]() ![]() The size of a Font is described as being specified in points whichĪre a real world measurement of approximately 1/72 inch.īut the font size was still set in pixels.įor an experiment I added “WebView” to the scene and loaded a page in it, on which I displayed two div tags. It is said in JavaFX2 documentation, that: I also tried to set font for “Text” with the method “setFont”, which accepts parameter of type “Font”. When I set the font size of any node with CSS, no matter what measurement unit I choose (I tried both pt and px), font size is still set in pixels.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |