bug or font related isue?
in
Programming Questions
•
2 years ago
I want to get a line like here:
http://processing.org/reference/textAscent_.html
since i dont have scala i create a font using the arial:
But my line is standing to high, i also tried verdana, same thing.
Is this a bug?
http://processing.org/reference/textAscent_.html
since i dont have scala i create a font using the arial:
- PFont font;
font = createFont("Arial", 64);
textFont(font);
textSize(32);
float ascent = textAscent();
text("dp", 0, 70);
line(0, 70-ascent, 100, 70-ascent);
textSize(64);
ascent = textAscent();
text("dp", 35, 70);
line(35, 70-ascent, 100, 70-ascent);
But my line is standing to high, i also tried verdana, same thing.
Is this a bug?
1
