PhetFont¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/scenery-phet/blob/main/js/PhetFont.ts for the most up-to-date information.
Overview¶
Encapsulation of the font used for PhET simulations. Provides PhET-specific defaults, and guarantees a fallback for font family.
Sample use: new PhetFont( { family: 'Futura', size: 24, weight: 'bold' } ) new PhetFont( 24 )
@author Chris Malley (PixelZoom, Inc.)
Class PhetFont¶
Constructor¶
new PhetFont( providedOptions? : number | string | FontOptions )¶
Instance Methods¶
Source Code¶
See the source for PhetFont.ts in the scenery-phet repository.