1. Download our Official Android App: Forums for Android!

Root font color

Discussion in 'Android Devices' started by RunVert, Apr 26, 2011.

  1. RunVert

    RunVert Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    238
    Joined:
    Jan 28, 2011

    Jan 28, 2011
    238
    12
    38
    Fort Collins, Colorado
    is it possible to change the color of your fonts?
    I have an app that can change the type of font, but was wondering if it was possible to change the color, either manually or with an app?
     

    Advertisement

  2. youdoofus

    youdoofus Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    2,131
    Joined:
    Feb 26, 2011

    Feb 26, 2011
    2,131
    747
    213
    Tech support rep for Knology
    so dak
    man, i think youd hafta get an entire character set and manually import them into the right folder location within the rom.... or st least it seems like thats what youd hafta do. im betting that the character sets are available somewhere
     
  3. ardchoille

    ardchoille Android Expert
    Rank:
    None
    Points:
    333
    Posts:
    3,684
    Joined:
    Mar 8, 2011

    Mar 8, 2011
    3,684
    1,940
    333
    Male
    Ordained Minister
    Seattle
    Or it may simply be a setting in one of the many xml files in framework-res.apk (something like #ffffff for white fonts). I do a lot of theming and most of it is done in this apk file. There has to be something telling the system to print white on black and black on white and not vice versa.
     
  4. RunVert

    RunVert Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    238
    Joined:
    Jan 28, 2011

    Jan 28, 2011
    238
    12
    38
    Fort Collins, Colorado
    doofus- where, on the phone, are the default character sets stored? I am guessing somewhere in /system..?

    ard- is this something ninjamorph app could edit or change?


    ...I wonder, if both these options would work.....which path would be the easiest to change the font color? (I am thinking a light blue font on my EVO would look pretty sweet) :)
     
  5. akazabam

    akazabam Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    4,418
    Joined:
    Jun 7, 2010

    Jun 7, 2010
    4,418
    1,387
    313
    Near Los Angeles
    Fonts are stored in /system/fonts as ttf files. You can't just change the color. You have to tell the system to display that font as a specific color in whatever "area" it is that normally displays fonts. For example, you can change stuff in the taskbar by editing some files in framework-res.apk, or, if I'm not mistaken, anything related to the clock (font color) would be in services.jar. Alas, you're getting a little outside my knowledge of how specifically to change that, but it certainly is not as simple as just editing the fonts. Changing the particular font is easy, as you know. All that is doing is replacing the existing ttf files with whatever font you want, and keeping the original name of the file so that the system knows where to look for it.
     
    ardchoille likes this.
  6. evomattnc

    evomattnc Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    3,245
    Joined:
    Feb 10, 2011

    Feb 10, 2011
    3,245
    536
    213
    Mechanical Engineer for GE Nuclear
    NC
    Agreed i have never edited the colors of fonts though i have edited other background colors and things. You are on the right track is basically what we are saying. You'll need to edit the associated xml but it will only edit the font color in that area, you'll need to find all of them :). They are in framework res so keep digging around and let us know when you find it :D
     
  7. RunVert

    RunVert Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    238
    Joined:
    Jan 28, 2011

    Jan 28, 2011
    238
    12
    38
    Fort Collins, Colorado
    so, theoretically, what if I were to go into /system/fonts, and delete the ttf files that are in there. (copy them to my cpu prior to deletion). then copy over new ttf files (fonts with the color I choose) in their place, having the same name as the ones I deleted.
    So the ttf files would be in the same location and have the same name as the deleted default ttf files.
    If I were to do this and save it and reboot, would it pull those new ttf files that I installed in place of the old ones, as the new default system fonts?
    ..same location, same name..just different color when opened.

    ...or would this not work at all? :(

    ..thanks!
     
  8. evomattnc

    evomattnc Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    3,245
    Joined:
    Feb 10, 2011

    Feb 10, 2011
    3,245
    536
    213
    Mechanical Engineer for GE Nuclear
    NC
    Interesting question, yes that is one way yo change the fonts is to replace it with a ttf of the same name. Never suggest it that way because font changer app is soo much easier. You will also need the bold versions and the clockopia blah blah, just saying dont miss one.

    What i dont know is if a .ttf can contain color information...never seen it? Also the xml in services jar tells it to make a font a certain color, white on black, black on white, what happens when your font is red and services tells it to go white? well it will go white...you may get your color in some places...I dunno i can only suggest making a back up and tryring but yes you can change the fonts in system/font that way. Droid-sans droid-sans-bold and clockopia are the 3 i believe you'll want to change.
     
    RunVert likes this.
  9. akazabam

    akazabam Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    4,418
    Joined:
    Jun 7, 2010

    Jun 7, 2010
    4,418
    1,387
    313
    Near Los Angeles
    Yes, those are the three. When you replace a font, it just uses a different file, but keeps that name, as that's what the system looks for. As for changing colors, I believe you are correct - it's the xml (and I think there are a few regular text files) that tell it what color to display. If nothing else, I would assume changing the actual ttf color (not sure that's even possible) would cause problems. I could be wrong. Editing ttf files isn't something I know too much about :).
     
    RunVert likes this.
  10. RunVert

    RunVert Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    238
    Joined:
    Jan 28, 2011

    Jan 28, 2011
    238
    12
    38
    Fort Collins, Colorado
    cool, yeah I'll take a deeper look into this, later this evening when I have more time. test out some of these ideas and see what happens!....I know I know....backup first! :D
    ..thanks guys!
     
  11. youdoofus

    youdoofus Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    2,131
    Joined:
    Feb 26, 2011

    Feb 26, 2011
    2,131
    747
    213
    Tech support rep for Knology
    so dak
    man.... i dont pay attention to the aftermath of some posts, and the jedis step in lol yeah, hey, make a backup first LoL oh, and when youre done doing that, make a backup first lol
     
  12. evomattnc

    evomattnc Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    3,245
    Joined:
    Feb 10, 2011

    Feb 10, 2011
    3,245
    536
    213
    Mechanical Engineer for GE Nuclear
    NC
    doofus...i am your father ;)
     
  13. geewhiz

    geewhiz Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    186
    Joined:
    Dec 10, 2010

    Dec 10, 2010
    186
    35
    43
    bayou country

    Patience young skywalker.
     
Tags:

Share This Page

Loading...