* Checks whether a font has glyph point data and * can thus be used for textToPoints(), WEBGL mode, etc. * @private
(textFont)
| 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)); |