[Android][TextBlock] Font Weights are not consumed. #4015
Labels
Area-Inconsistency
Bugs around renderer inconsistencies across different platforms
Bug
High Priority
Partner-CiscoWebEx
Bugs impacting CiscoWebEx integration scenarios
Partner-MsftTeams
Issues related to AC integration with Microsoft Teams partner
Partner-MsftTeamsMobile
Bugs related specifically to Teams Mobile integration (iOS/Android)
Platform-Android
Milestone
Platform
Author or host
Host - Teams Android app
Version of SDK
1.2.6
Issue
Host config has an option to control font weight by providing metrics to it(As mentioned in the public documentation: https://docs.microsoft.com/en-us/adaptive-cards/rendering-cards/host-config#fontweightsconfig).Updating these metrics remain unaffected on client.
Also, the TextBlock with fontWeight=“lighter” has Italic typeface.
The issue is illustrated in the image below:
However, desktop has normal typeface with lesser fontWeight.
Moreover it is found that each fontWeight property is mapped to Typeface as below on Android:
Lighter -> Italic
Default -> Normal
Bolder -> Bold.
On the other hand, iOS and Desktop consumes the values from hostConfig for each fontWeight and use that:
Also, attaching the relevant JSON.
fontWeight.zip
cc: @VikrantSingh01.
The text was updated successfully, but these errors were encountered: