Android Question Fonts? How to access from Designer?

Discussion in 'Android Questions' started by schemer, Feb 7, 2015.

  1. schemer

    schemer Active Member Licensed User

    Hi,
    How can we use more font's in our apps? Can we add more to be available or selected from within the Designer?
    Thanks,
    schemer
     
  2. NJDude

    NJDude Expert Licensed User

    You have to load the fonts programmatically, read about TYPEFACE here.
     
    schemer and DonManfred like this.
  3. schemer

    schemer Active Member Licensed User

    Ahhhh, ok. Thanks for the link and info. More reading. :D But I love to read.
    schemer
     
  4. schemer

    schemer Active Member Licensed User

    Ok, so I was testing some fonts and of course the first one I test does not work, although some I tried after work fine. Are there limits to which fonts will work? If so, what are the rules or is it a trial and error thing?
    Thanks,
    schemer
     
  5. Cableguy

    Cableguy Expert Licensed User

    Normally all TTF fonts should work with no problems. Also, in the visual designer, if you add a font file to your folder and to the designer, as you would do for an image file, it becomes available in the text typeface properties of the view
     
    Roger Daley and lemonisdead like this.
  6. schemer

    schemer Active Member Licensed User

    Well that is good to know. The first one I tried that did not work was Dragbd__.ttf and others I tried did. I don't need that font but it was just a test and of course I grabbed the one that doesn't work. :eek: Does the AVD used make a difference whereas the font may work on an actual device? I was using the Nexus_7_2012_API_21 (Android 5.0.1 ARM armeabi-v7a).
    Thanks,
    schemer
     
  7. Cableguy

    Cableguy Expert Licensed User

    Did you rename the font? Maybe the designer doesn't like the underscore
     
  8. schemer

    schemer Active Member Licensed User

    Yes, I tried that first. I removed the 2 underscores and changed it to all small letters. When I ran it, it just looked like a default font and not the Dragbd__.ttf font.
    schemer
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    Don't use the emulator at all. It is slow and unreliable.

    Does the font work on a real device?
     
  10. schemer

    schemer Active Member Licensed User

    I didn't try the real device yet as I have been using the emulator while I learn all the differences from VB to B4A. I will try that and report back.
    Thanks,
    schemer

    edit: YES it does work on my real device. :) That is good to know that the emulator is unreliable but the device is not.
    Thanks
     
    Last edited: Feb 8, 2015
  11. NJDude

    NJDude Expert Licensed User

    A little bit off topic but, you are doing it wrong, you should learn how to use B4A not the "differences" between VB and B4A.
     
    Erel and lemonisdead like this.
  12. schemer

    schemer Active Member Licensed User

    I guess what I meant to say is learning B4A but figuring out the naming convention changes on things like a combobox in VB is a spinner in B4A. :p
    Thanks,
    schemer
     
    NJDude likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice