Skip to content

Commit e9763bc

Browse files
authored
stopped overriding the ascent and descent functions
1 parent 3c28c81 commit e9763bc

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

src/webgl/text.js

Lines changed: 2 additions & 16 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) {
@@ -18,22 +20,6 @@ p5.RendererGL.prototype.textWidth = function(s) {
1820
return 0; // TODO: error
1921
};
2022

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-
if (this._isOpenType()) {
31-
return this._textFont._textDescent(this._textSize);
32-
}
33-
34-
return 0; // TODO: error
35-
};
36-
3723
// rendering constants
3824

3925
// the number of rows/columns dividing each glyph

0 commit comments

Comments
 (0)