CHAPTER 18

image

Understanding Text Nodes

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

What Is a Text Node?

A text node is an instance of the Text class that is used to render text. The Text class contains several properties to customize the appearance of ...

Get Learn JavaFX 8: Building User Experience and Interfaces with Java 8 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.