© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
K. Sharan, P. SpäthLearn JavaFX 17https://doi.org/10.1007/978-1-4842-7848-2_15

15. Understanding Text Nodes

Kishori Sharan1   and Peter Späth2
(1)
Montgomery, AL, USA
(2)
Leipzig, Sachsen, Germany
 
In this chapter, you will learn:
  • What a Text node is and how to create it

  • The coordinate system used for drawing Text nodes

  • How to display multiline text in a Text node

  • How to set fonts for a Text node

  • How to access installed fonts and how to install custom fonts

  • How to set the fill and stroke for Text nodes

  • How to apply decoration such as underline and strikethrough to Text nodes

  • How to apply font smoothing

  • How to style Text nodes using CSS

The examples of this chapter lie in ...

Get Learn JavaFX 17: Building User Experience and Interfaces with Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.