myopic-design
myopic-design/defold-fontscale/fontscale
Reads the operating system's font-scale (text size) setting.
- GitHub: myopic-design/defold-fontscale — pinned to
v0.1.0- Pick a release from myopic-design/defold-fontscale releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as fontscale from "fontscale"
- Pick a release from myopic-design/defold-fontscale releases and add its Source code (zip) URL (or a packaged
Functions
get(): number
Returns the OS font-scale factor, where 1 is the default text size.
Returns
number— The current font-scale factor.