OperatingSystemFont.releaseContext

stringWidth can be slow. This helps speed it up if you are doing a lot of calculations. Just prepareContext when you start this work and releaseContext when you are done. Important to release before too long though as it can be a scarce system resource.

class OperatingSystemFont
void
releaseContext
()

Meta

History

Added January 23, 2021

Suggestion Box / Bug Report