AgentforceTypography

object AgentforceTypography : Typography

The Agentforce type scale: a set of 23 text styles covering every text element the SDK draws, extending the Salesforce SharedUI Typography base class. AgentforceTypography.Default is the ready-made instance — start from it rather than constructing your own.

Declared in package com.salesforce.android.agentforcesdk.components.theme.

PropertyTypeDescription
bodyFontScale1RegularTextStyleBody text style at scale 1, regular weight
bodyFontScale1SemiboldTextStyleBody text style at scale 1, semibold weight
bodyFontScale2RegularTextStyleBody text style at scale 2, regular weight
bodyFontScale2SemiboldTextStyleBody text style at scale 2, semibold weight
bodyFontScaleBaseRegularTextStyleBase body text style, regular weight
bodyFontScaleBaseSemiboldTextStyleBase body text style, semibold weight
bodyFontScaleNeg1RegularTextStyleBody text style at negative scale 1, regular weight
titlesFontScale3RegularTextStyleTitle text style at scale 3, regular weight
titlesFontScale3SemiboldTextStyleTitle text style at scale 3, semibold weight
titlesFontScale4RegularTextStyleTitle text style at scale 4, regular weight
titlesFontScale4SemiboldTextStyleTitle text style at scale 4, semibold weight
titlesFontScale5RegularTextStyleTitle text style at scale 5, regular weight

This table lists the styles most commonly overridden. The full type scale has 23 styles — see the SDK source or ask the Android team for the complete list before publishing.

copyWithFontFamily(...) returns a new Typography with every style set to the given font family, leaving weight, size, and line height untouched.

To change the weight, size, or line height of specific styles rather than the whole scale, derive from AgentforceTypography.Default and apply mergeWith(...), which returns a new Typography with only the given styles replaced:

Pass the result into createCustomAgentforceThemeManager(typography = typography), or set it on AgentforceThemeOverrides if you’re overriding through AgentforceTheming.Overrides.