android-ago icon indicating copy to clipboard operation
android-ago copied to clipboard

add font family option

Open IgordeOliveira opened this issue 7 years ago • 6 comments

IgordeOliveira avatar Jan 05 '18 15:01 IgordeOliveira

@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)

curioustechizen avatar Jan 07 '18 12:01 curioustechizen

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

IgordeOliveira avatar Jan 08 '18 14:01 IgordeOliveira

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

curioustechizen avatar Jan 14 '18 15:01 curioustechizen

@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 avatar Jan 20 '18 10:01 curioustechizen

@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.

curioustechizen avatar Jan 27 '18 18:01 curioustechizen

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.

SupakornIa avatar Aug 28 '18 03:08 SupakornIa