The OpenD Programming Language

OperatingSystemFont.prepareContext

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
prepareContext
()

Meta

History

Added January 23, 2021