Update git submodules
* Update frameworks/support from branch 'androidx-main'
to 22526be956b6fd321c27285bc803ecf47e1d0305
- Merge "Expose createFontFamilyResolver(fontResourceLoader, context)" into androidx-main
- Expose createFontFamilyResolver(fontResourceLoader, context)
This is a bridge API to allow creating a FontFamily.Resolver that
delegates to a Compose 1.0 Font.ResourceLoader subclass.
Apps without a Font.ResourceLoader subclass can use the default new
behavior, but if resource loading was customized this bridge exists to
allow upgrading to the new font system.
Example use cases for subclasses:
1. Using resource ids as keys for custom logic
2. Safe-loading from ResourcesCompat with fallbacks.
Both of these use cases should eventually migrate to using AndroidFont
and FontFamily fallback chains to declare custom font resources in the
long term.
Relnote: "Add bridge API for converting custom Font.ResourceLoader into
FontFamily.Resolver."
Test: ./gradlew :compose:ui:ui-text:cAT
Bug: b/218056354
Change-Id: Ia0060ac94570dbdba5f0a6aaba72f250e6f8fc72
Loading
Please sign in to comment