MCPcopy Index your code
hub / github.com/processing/p5.js / hasGlyphData

Method hasGlyphData

src/type/p5.Font.js:72–75  ·  view source on GitHub ↗

* Checks whether a font has glyph point data and * can thus be used for textToPoints(), WEBGL mode, etc. * @private

(textFont)

Source from the content-addressed store, hash-verified

70 * @private
71 */
72 static hasGlyphData(textFont) {
73 let { font } = textFont;
74 return typeof font === 'object' && typeof font.data !== 'undefined';
75 }
76
77 fontBounds(str, x, y, width, height, options) {
78 ({ width, height, options } = this._parseArgs(width, height, options));

Callers 1

textFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected