File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import './p5.RendererGL.Retained';
8
8
p5 . RendererGL . prototype . _applyTextProperties = function ( ) {
9
9
//@TODO finish implementation
10
10
//console.error('text commands not yet implemented in webgl');
11
+ this . _setProperty ( '_textAscent' , null ) ;
12
+ this . _setProperty ( '_textDescent' , null ) ;
11
13
} ;
12
14
13
15
p5 . RendererGL . prototype . textWidth = function ( s ) {
@@ -18,22 +20,6 @@ p5.RendererGL.prototype.textWidth = function(s) {
18
20
return 0 ; // TODO: error
19
21
} ;
20
22
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
-
37
23
// rendering constants
38
24
39
25
// the number of rows/columns dividing each glyph
You can’t perform that action at this time.
0 commit comments