Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Roboto as the default font family for Android #2244

Merged
merged 1 commit into from Oct 11, 2018
Merged

Conversation

enahum
Copy link
Contributor

@enahum enahum commented Oct 10, 2018

Summary

In some Android devices (OnePlus and Oppo) the text is sometimes being cut-off and according to facebook/react-native#15114 switching the default font to use Roboto fixes the issue

This is a great candidate to build the PR and have the reporter download the apk and test it.

Fixes: #2009

Ticket Link

https://mattermost.atlassian.net/browse/MM-11845

Device Information

This PR was tested on: Android Pie, Oreo and Nougat

@enahum enahum added the 2: Dev Review Requires review by a core commiter label Oct 10, 2018
@enahum enahum added this to the 1.14 milestone Oct 10, 2018
this.getStartupThemes();
this.getAppCredentials();
}

setFontFamily = () => {
// Set a global font for Android
if (Platform.OS === 'android') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was following this https://medium.com/react-native-training/react-native-custom-fonts-ccc9aacf9e5e and somehow it gives me more confidence that is going to use the right font

Copy link
Member

@hmhealey hmhealey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me on both of those

@sudheerDev sudheerDev added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Oct 11, 2018
@sudheerDev sudheerDev merged commit de7878e into master Oct 11, 2018
@sudheerDev sudheerDev deleted the MM-11845 branch October 11, 2018 14:03
@lindalumitchell lindalumitchell added Build Apps for PR Build the mobile app for iOS and Android to test and removed Build Apps for PR Build the mobile app for iOS and Android to test labels Oct 26, 2018
@mattermost mattermost deleted a comment from mattermod Oct 26, 2018
@mattermost mattermost deleted a comment from mattermod Oct 26, 2018
@omorhefere
Copy link

omorhefere commented Nov 20, 2018

@sudheerDev How can I use this?

@lindy65 lindy65 added the Tests/Not Needed Does not require tests label Apr 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request Tests/Not Needed Does not require tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android client shortens names too early (OnePlus 6)
6 participants