Skip to content

Commit 7e20954

Browse files
authored
Merge pull request #7187 from Forchapeatl/patch-6
Added textAscent and textDescent functions on Webgl
2 parents 5fbde13 + e9763bc commit 7e20954

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/webgl/text.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import './p5.RendererGL.Retained';
88
p5.RendererGL.prototype._applyTextProperties = function() {
99
//@TODO finish implementation
1010
//console.error('text commands not yet implemented in webgl');
11+
this._setProperty('_textAscent', null);
12+
this._setProperty('_textDescent', null);
1113
};
1214

1315
p5.RendererGL.prototype.textWidth = function(s) {

0 commit comments

Comments
 (0)