We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Is there a way to formatting text , like using a hyphen ( and control it ), kerning:optical, setting some open type option like (ligature, small Cap)? Or convert code from a web page like bold < p > < b > is there any control for text into text box.
textAlign()
textFont()
textMode()
textSize()
textLeading()
textWidth()
textAscent()
textDescent()
Answers
ok, let me see
tutorial
there is at least one tutorial:
https://www.processing.org/tutorials/typography/
in the tutorials
https://www.processing.org/tutorials/
reference
there is a section Typography with 3 subSections in the reference:
https://www.processing.org/reference/
text in a box
you can use the command text() with 5 parameters to tell it to stay in a box;
which means :
https://www.processing.org/reference/text_.html
library
maybe there is a lib for this kind of stuff, dunno
https://www.processing.org/reference/libraries/
you can always program stuff like this, I was thinking about this myself.
in this forum there is a markup language for this
afaik there is no bold in processing, but maybe when you use createFont to access a bold font it might work
I made a small sketch where you could use special chars within a text to change e.g. font color
this help but not exactly what I am looking for, but it is interesting and gives me ideas