Typography and Fonts
Comprehensive typography system for Android Agentforce components with multiple scales, weights, and semantic usage patterns.
The Android Agentforce SDK provides a complete typography system with the following classes:
- Typography - Base class for typography used in themes with 12 TextStyle properties for body and title font scales
- AgentforceTypography - Default typography implementation object that extends the Typography base class
- SalesforceTextFontScale - Composable function for Salesforce text font scaling
The typography system provides multiple font scales and weights for creating clear information hierarchy:
bodyFontScaleNeg1Regular- Smaller body text, regular weightbodyFontScaleBaseRegular- Standard body text, regular weightbodyFontScaleBaseSemibold- Standard body text, semibold weightbodyFontScale1Regular- Larger body text, regular weightbodyFontScale1Semibold- Larger body text, semibold weightbodyFontScale2Regular- Even larger body text, regular weightbodyFontScale2Semibold- Even larger body text, semibold weight
titlesFontScale3Regular- Medium titles, regular weighttitlesFontScale3Semibold- Medium titles, semibold weighttitlesFontScale4Regular- Large titles, regular weighttitlesFontScale4Semibold- Large titles, semibold weighttitlesFontScale5Regular- Extra large titles, regular weight
- AgentforceThemeManager - Theme management with typography support
- AgentforceColors - Color theming system
- AgentforceSpacing - Spacing system