Difference between typography and strings?

please format code with </> button * homework policy * asking questions

Hi, I’m new to Processing and coding in general. What is the difference between strings generated class of text versus the typography text() feature in Processing? I’m confused why they needed to be separated. Thank you.

Hell0 @Dun,

The reference gives a good explanation here:
https://processing.org/reference/text_.html
and here:

https://processing.org/reference/String.html

:nerd_face:

2 Likes

Hello,

More references for you:

Take a look at the source to see what the Processing function text() is under the hood:
processing/PApplet.java at master · processing/processing · GitHub

:)

These are two
Different things.

  • We can use String to operate data internally and fetch text.
  • We can use text() to display a String but that’s only a small part of it.
  • The art of Displaying text in a nice font is named Typography.