MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / getTextWidth

Method getTextWidth

typings/commodetto/Poco.d.ts:80–80  ·  view source on GitHub ↗
(text: string, font: Font)

Source from the content-addressed store, hash-verified

78
79 drawText(text: string, font: Font, color: number, x: number, y: number, width?: number): void
80 getTextWidth(text: string, font: Font): number
81
82 adaptInvalid(area: Rectangle): void
83

Callers 15

gettextwidth.jsFile · 0.80
drawtext.jsFile · 0.80
main.jsFile · 0.80
drawMetadataMethod · 0.80
onTrackChangedMethod · 0.80
startTextTickerTimerMethod · 0.80
displayTimeMethod · 0.80
main.jsFile · 0.80
redrawFunction · 0.80
drawCountFunction · 0.80
main.jsFile · 0.80
updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected