We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26a194e commit 3c28c81Copy full SHA for 3c28c81
src/webgl/text.js
@@ -18,6 +18,22 @@ p5.RendererGL.prototype.textWidth = function(s) {
18
return 0; // TODO: error
19
};
20
21
+p5.RendererGL.prototype.textAscent = function(s) {
22
+ if (this._isOpenType()) {
23
+ return this._textFont._textAscent(this._textSize);
24
+ }
25
+
26
+ return 0; // TODO: error
27
+};
28
29
+p5.RendererGL.prototype.textDescent = function(s) {
30
31
+ return this._textFont._textDescent(this._textSize);
32
33
34
35
36
37
// rendering constants
38
39
// the number of rows/columns dividing each glyph
0 commit comments