Coder Social home page Coder Social logo

Comments (6)

curioustechizen avatar curioustechizen commented on May 24, 2024

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

from android-ago.

IgordeOliveira avatar IgordeOliveira commented on May 24, 2024

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

from android-ago.

curioustechizen avatar curioustechizen commented on May 24, 2024

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

from android-ago.

curioustechizen avatar curioustechizen commented on May 24, 2024

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

from android-ago.

curioustechizen avatar curioustechizen commented on May 24, 2024

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

from android-ago.

SupakornIa avatar SupakornIa commented on May 24, 2024

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.

from android-ago.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.