Accessors
Static
cacheSize
- get cacheSize(): number
-
Returns number
Methods
Static
checkAndClearCache
- checkAndClearCache(): void
-
Returns void
Static
clearCache
- clearCache(): void
-
Returns void
Static
getTextInstance
- getTextInstance(text: string, font: Font, color: Color): FontTextInstance
-
Returns FontTextInstance
Static
measureText
- measureText(text: string, font: Font, maxWidth?: number): BoundingBox
-
Parameters
-
text: string
-
-
Optional
maxWidth: number
Force clear all cached text bitmaps