textSize(size); size in... pixels?
in
Programming Questions
•
2 years ago
I've searched processing website and found this:
It tells me that size is the size of letters in pixels, and I've read the manual for processing and it tells me the position x and y of text(String,x,y), are the positions of the left side of the bottom line of the text.
So, when I write:
textSize(30);
text("Hello",0,30);
There should be an Hello word at the upper left corner of my display, but it is slightly deviated down.
Then I try:
textSize(30);
text("Hello",0,20);
And that does the job.
My question is: what size does the argument of size in textSize(size) refers to? It is not the font's height in pixels and of course it is not its width, width is smaller than heght, so is it the diagonal lenght? I'm confused.
Thanks ;)
1