Comment on page
Test Accessibility Font Sizes
Appetize supports easily testing various font sizes, ensuring compatibility across all your supported devices for a seamless user experience.
Dynamic font size testing is integral to crafting an inclusive and user-friendly app experience. It ensures readability across diverse devices, platforms, and languages.
By ensuring all supported font sizes work as expected, you enhance accessibility, maintain cross-platform consistency, and support inclusive design principles, contributing to a seamless and engaging user experience for all.
Android supports the following font scales to be applied to the session:
We can apply a font scale to our app or session by making use of the adbShellCommand to execute a
font_scale
change e.g.Applying "Large" Scale
settings put system font_scale 1.15
Query Parameter
JavaScript SDK
&adbShellCommand=settings+put+system+font_scale+1.15
await session.adbShellCommand("settings put system font_scale 1.15")
iOS supports the following dynamic font scales to be applied to the session:
Scale | Value |
---|---|
UICTContentSizeCategoryXS | |
UICTContentSizeCategoryS | |
UICTContentSizeCategoryM | |
UICTContentSizeCategoryL | |
UICTContentSizeCategoryXL | |
UICTContentSizeCategoryXXL | |
UICTContentSizeCategoryXXXL | |
UICTContentSizeCategoryAccessibilityM | |
UICTContentSizeCategoryAccessibilityL | |
UICTContentSizeCategoryAccessibilityXL | |
UICTContentSizeCategoryAccessibilityXXL | |
UICTContentSizeCategoryAccessibilityXXXL |
We can apply the initial dynamic font scale by sending the content size category value as a launch argument to our session when launched e.g.
Apply Double Extra Large Dynamic Font Scale
[ "-UIPreferredContentSizeCategoryName", "UICTContentSizeCategoryXXL" ]
Query Parameter
JavaScript SDK
&launchArgs=%5B+"-UIPreferredContentSizeCategoryName"%2C+"UICTContentSizeCategoryXXL"+%5D
const session = await client.startSession({
...
launchArgs: [ "-UIPreferredContentSizeCategoryName", "UICTContentSizeCategoryXXL" ]
})