API reference

TypographyDefaults Object

Built-in Typography implementations, identical in metrics and differing only in font family.

Signature

object TypographyDefaults

Properties

Platform : Typography
[Get]
The type scale on the device Optimistic family, and the default when no Typography is passed to UiSetTheme. Optimistic is installed on Meta VR devices; anywhere else it resolves to the platform default font, so prefer TypographyDefaults.Portable off-device.
Signature
val Platform: Typography
Portable : Typography
[Get]
The same type scale on the bundled interFontFamily. Use it wherever Optimistic is unavailable — phones, emulators, screenshot tests — so text renders as authored rather than substituted.
Signature
val Portable: Typography