Skip to content

Commit

Permalink
Merge pull request #7524 from seyko1/fix/remove-wrong-renderer-gl-typ…
Browse files Browse the repository at this point in the history
…o-function

Remove wrong rendererGL textWidth function
  • Loading branch information
davepagurek authored Feb 4, 2025
2 parents 5b2500d + 0ab9878 commit 47faadf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/webgl/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ import { Geometry } from './p5.Geometry';
import { arrayCommandsToObjects } from '../type/p5.Font';

function text(p5, fn){
// Text/Typography
// Text/Typography (see src/type/textCore.js)
/*
RendererGL.prototype.textWidth = function(s) {
if (this._isOpenType()) {
return this.states.textFont.font._textWidth(s, this.states.textSize);
}
return 0; // TODO: error
};
*/

// rendering constants

Expand Down

0 comments on commit 47faadf

Please sign in to comment.