Skip to content

Commit 47faadf

Browse files
authored
Merge pull request #7524 from seyko1/fix/remove-wrong-renderer-gl-typo-function
Remove wrong rendererGL textWidth function
2 parents 5b2500d + 0ab9878 commit 47faadf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/webgl/text.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ import { Geometry } from './p5.Geometry';
55
import { arrayCommandsToObjects } from '../type/p5.Font';
66

77
function text(p5, fn){
8-
// Text/Typography
8+
// Text/Typography (see src/type/textCore.js)
9+
/*
910
RendererGL.prototype.textWidth = function(s) {
1011
if (this._isOpenType()) {
1112
return this.states.textFont.font._textWidth(s, this.states.textSize);
1213
}
1314
1415
return 0; // TODO: error
1516
};
17+
*/
1618

1719
// rendering constants
1820

0 commit comments

Comments
 (0)