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

add font family option #54

Open
IgordeOliveira opened this issue Jan 5, 2018 · 6 comments
Open

add font family option #54

IgordeOliveira opened this issue Jan 5, 2018 · 6 comments

Comments

@IgordeOliveira
Copy link

No description provided.

@curioustechizen
Copy link
Owner

@IgordeOliveira This is simply a TextView - the fontFamily attribute should work our of the box. If you have tried it and it does not work, could you please submit some details (sample code, screenshots etc)

@IgordeOliveira
Copy link
Author

I choose a font in the attributes, as in the image, in the preview works but when I compile the app just the 'time ago' text does not change the font.

image

@curioustechizen
Copy link
Owner

@IgordeOliveira Sorry for the delayed response. I will look into it during the coming week.

@curioustechizen
Copy link
Owner

@IgordeOliveira I had a quick experiment with the sample app and added scada font. Here's how it looks.

font_scada

As you can see, the RTTV has the scada font applied. It is a bit difficult to spot in this example, so here's one with a more easy to spot font

font_audiowide

It looks like the font is being applied correctly on RTTV. Could you give more pointers like

  • How are you downloading the custom font? Are you using a FontProvider like Google Play Services?
  • What is the Android version on which you see the problem? (I'm thinking perhaps I might need to extend from AppCompatTextView or something instead of just just TextView on older versions)

@curioustechizen
Copy link
Owner

@IgordeOliveira Have you had time to look into this further? If not, I would like to close this issue for now and you could reopen if you still face problems.

@SupakornIa
Copy link

I got the same problem . it will work on API 27 but it doesn't work in API 24 (Android 7.0) , when i use this in API 27( Android 8.1.0 ) I changed fontFamily .Font will be changed accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants