[How To] Manually Change System (And Other) Fonts

Search This thread

c_live_lee

Senior Member
[FONT=verdana,geneva,sans-serif]Hello all, I'll start this off with the usual...[/FONT]
[FONT=verdana,geneva,sans-serif]If you break your $!#7, it ain't my fault! No one twisted your arm here. ;)[/FONT]

[FONT=verdana,geneva,sans-serif]Anyway, I've noticed a few instances in these forums where someone will have questions about changing fonts so, I thought I would reprise my old[/FONT]
[FONT=verdana,geneva,sans-serif]Sense 3.0/3.5 Thunderbolt tutorial and adapt it to our RAZRs and MAXXes, for those who would like to know the ins and outs of it. This will likely work for many devices in general and, I'm fairly certain it will work for both the CDMA/xt912 and the GSM/xt910 RAZRs. I can't guarantee this though so, check for similarities on your GSM device before diving in.

Of course, it's not necessary to go the manual route but, I think it's beneficial to anyone in the sense that it can give you a slightly more intimate understanding of how things work behind the scenes, AND it will allow you to show more consistency, when changing your fonts, than you would while using an app such as Rom Toolbox or the more specialized font changing apps.
[/FONT]

[FONT=verdana,geneva,sans-serif]A quick warning here, before you get started:[/FONT]
[FONT=verdana,geneva,sans-serif]You SHALL find yourself in a bootloop if you fail to follow instructions!![/FONT]
[FONT=verdana,geneva,sans-serif]But, this is absolutely nothing to worry about, as long as you're prepared. Create a backup in SafeStrap (or whatever recovery applies in your case) prior to moving forward, if you haven't already. Should you find yourself in the bootloop, of which you were warned, there are merely two things you need to do:[/FONT]

[FONT=verdana,geneva,sans-serif]1. (And this is HUGELY important) Shut the hell up! I hear you blaming me! I promise, YOU screwed up! lol[/FONT]

[FONT=verdana,geneva,sans-serif]2. All you need to do is to perform an advanced restore from SafeStrap. Simply restore the System partition and don't worry about anything else. This should take less time than a full restore, which is unnecessary here.[/FONT]

[FONT=verdana,geneva,sans-serif]So, here we go...[/FONT]

[FONT=verdana,geneva,sans-serif]You'll need a root-enabled file explorer to do this. Root Explorer is my old stand-by but, Rom Toolbox also has one included. Another excellent option (coincidentally, a FREE option) is ES File Explorer. Any of these will work fine here.[/FONT]​



To begin, I'll give you an idea of what you'll see in the "System/fonts" folder, as well as, offer an explanation for the purpose of the ones I know.
screenshot.jpg



  • AndroidClock.ttf = Stock Digital Clock Widget & Dock/Desk Clock ("Clock" in App Drawer).
  • AndroidClock_Highlight.ttf = Lock Screen Clock.
  • AndroidClock_Solid.ttf = Unsure of its purpose.
  • Clockopia.ttf = Former Stock clock font but, seems unused by the system in Android 4.0+.
  • DroidSans.ttf = Apparently unused in Android 4.0+. System font from previous Android versions.
  • DroidSans-Bold = Apparently unused in Android 4.0+. Bold system font from previous Android versions.
  • Roboto-Regular.ttf = This is the one always referred to as the "System Font." It yields the most noticeable results and, is the one all the font changer apps alter. Affects almost all text on your device.
  • Roboto-Bold = The bold version of Roboto. Not seen everywhere but it is seen. Opening your Gmail app to an email in your inbox will allow you to see Regular and Bold in the same occurrence. The sender's name will be in bold and their address will be in Regular. I recommend changing if you have a bold version of your replacement font.
  • Roboto-Italic = Unsure of its frequency of use but, it's not often. However, if you have a matching Italic font, it can't hurt to use it.
  • Roboto-BoldItalic = Unsure of its frequency of use but, it's not often. However, if you have a matching Bold Italic font, it can't hurt to use it.
  • There are also various other languages of the Roboto font in the "System/fonts" folder. If a particular language is your default, I'm sure it's obvious what adjustments you would need to make with regards to font replacement.

Now that you have an idea of the fonts you may want to replace, you've reached a crossroads. If you ONLY feel the need to change Roboto-Regular, then you may want to consider aborting here and using one of the apps.
If however, you want more, this may be your thing. Here's what you do next. And it doesn't have to be done this way precisely but, I've found it to be much simpler than the alternatives.

1. You'll want to open your file explorer and navigate to the root of your SD-Ext card. Here you'll create a folder. Name it something you'll remember. It will contain copies of your personal fonts that you'll be wanting to use - just the ones which correspond to the System fonts you wish to be changed. Make the copies of your fonts and place them in this folder.

2. Re-name your fonts to PRECISELY match the names of their System font counterparts. P-R-E-C-I-S-E-L-Y! ;)
IMPORTANT NOTE: Android DOES NOT recognize fonts with the "otf" or "open type font" file extension. It ONLY recognizes fonts with the "ttf" or "Truetype Font" file extension. In my experience though, you may simply change "otf" to "ttf" while re-naming them and they'll work fine.

Just so we're clear, here's an example.




If you're replacing Roboto-Bold.ttf,
with a font named Neutraface-Bold.otf,
you don't JUST change it to "Roboto-Bold.otf". You change it to "Roboto-Bold.ttf"​

3. Now that you have all your fonts re-named to match their System Font counterparts, it's time to multi-select them all and either copy or move/cut (COPY is safer).

4. Navigate to the System folder, which is ABOVE the root of your SD card in the hierarchy. Within this folder, you'll find the "fonts" folder. Make sure your file explorer is set to "R/W" or "Read/Write" rather than the "RO" or "Read Only" setting. Once you've done this, paste your fonts within the "fonts" folder. When it asks you, select the box that says something to the effect of "do this for all" then allow it to overwrite the existing files.
screenshot%281%29.jpg


5. We're almost there now! Next thing to do is to change permissions (Usually a long-press option) for each of the pasted font files. Right now their permissions read something like this - "rwxr-x".
It needs to read like this - "rw-r-r".

Bringing up the permissions options will probably look like nine check boxes arranged neatly in a square or rectangular pattern. That's three rows of three boxes.
screenshot%282%29.jpg


Currently it looks like this:
x= a check
o= unchecked

o o o
x x x
x o x

OWNER= No Permissions
GROUP= Read and Write and Execute
OTHERS= Read and Execute

It needs to look like this when you're done. And it needs to be done for EVERY file you pasted in this folder.

x x o
x o o
x o o

OWNER= Read and Write
GROUP= Read
OTHERS= Read

6. Reboot and enjoy your triumph over The Man! :victory:
 
Last edited:

redheadplantguy

Senior Member
May 10, 2011
323
36
Louisville KY
This might be exactly what I've long been searching for.
Question. I have fonts I've downloaded. Can I rename a regular typeface font to "bold" and replace roboto-bold?
 

c_live_lee

Senior Member
This might be exactly what I've long been searching for.
Question. I have fonts I've downloaded. Can I rename a regular typeface font to "bold" and replace roboto-bold?

That should work just fine, redhead. It isn't too picky about the fonts you actually use. It mainly cares only about whether you name them appropriately for your intended purpose. Basically, you can name your fonts in whatever combination you like, as long as you use Google's established naming convention and, you understand that whatever the font is, renaming it will do only just that. It will not change the type of font in any way. Bold will not change to italic simply because one renames it, etc. With that understanding, go for it my friend. :D

Sent from my XT912 using Tapatalk 2
 

redheadplantguy

Senior Member
May 10, 2011
323
36
Louisville KY
That should work just fine, redhead. It isn't too picky about the fonts you actually use. It mainly cares only about whether you name them appropriately for your intended purpose. Basically, you can name your fonts in whatever combination you like, as long as you use Google's established naming convention and, you understand that whatever the font is, renaming it will do only just that. It will not change the type of font in any way. Bold will not change to italic simply because one renames it, etc. With that understanding, go for it my friend. :D

Sent from my XT912 using Tapatalk 2

Hmm, tried that and went into soft brick.
Restored fine, but i REALLY want to change bold font. It doesn't match the rest of my theme.
Anything i should double check?
 

c_live_lee

Senior Member
Hmm, tried that and went into soft brick.
Restored fine, but i REALLY want to change bold font. It doesn't match the rest of my theme.
Anything i should double check?

Hmmm... I'm honestly not sure here. I really expected it to work fine. Have you only tried it the one time, or more than once? I would simply double check to make sure all is compliant and try it again. If it still doesn't work, I'm sorry, but I'll be at a total loss.

Sent from my XT912 using Tapatalk 2
 

Zer0bee

New member
Dec 10, 2012
3
0
Bootloop

I programed your tutorial and i got bootloop. i want to know- when we got bootloop, and in my case what i am doing wrong-

os.writeBytes("chmod 777 /system/fonts/DroidSans.ttf\n");
os.writeBytes("rm -r /system/fonts/DroidSans.ttf\n");
os.writeBytes("dd if=/sdcard/AndroPolyGlot/DroidSansBackup.ttf of=/system/fonts/DroidSans.ttf\n");
os.writeBytes("chmod 644 /system/fonts/DroidSansFallback.ttf\n");
 

c_live_lee

Senior Member
I programed your tutorial and i got bootloop. i want to know- when we got bootloop, and in my case what i am doing wrong-

os.writeBytes("chmod 777 /system/fonts/DroidSans.ttf\n");
os.writeBytes("rm -r /system/fonts/DroidSans.ttf\n");
os.writeBytes("dd if=/sdcard/AndroPolyGlot/DroidSansBackup.ttf of=/system/fonts/DroidSans.ttf\n");
os.writeBytes("chmod 644 /system/fonts/DroidSansFallback.ttf\n");

Sorry you're having issues. All that stuff at the bottom of yiyr post isnt telling me a whole lot though. Can you describe for me, step by step, how you went about the process?
 

Zer0bee

New member
Dec 10, 2012
3
0
Procedure

Sorry you're having issues. All that stuff at the bottom of yiyr post isnt telling me a whole lot though. Can you describe for me, step by step, how you went about the process?

Let me explain you the whole procedure. I'm just following your procedure explained above. Mounting system in Read-Write mode and then changing permission of font file in "/system/fonts", then replacing system font with my font, and adding permission to replaced font to 644.

Process process = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(process.getOutputStream());
os.writeBytes("mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system\n");
os.writeBytes("chmod 777 /system/fonts/DroidSans.ttf\n");
os.writeBytes("rm -r /system/fonts/DroidSans.ttf\n");
os.writeBytes("dd if=/sdcard/AndroPolyGlot/"+fontToChange+" "+"of=/system/fonts/DroidSans.ttf\n");
os.writeBytes("chmod 644 /system/fonts/DroidSans.ttf\n");


here i'm replacing DroidSans.ttf, and after rebooting the device, it goes to bootloop. but if i'm following the same procedure with DroidSansFallback.ttf, devices reboot normally and that font will be supported.
Problen is only with DroidSans.ttf and DroidSans-Bold.ttf. Please help me.
 

Nooblit

Senior Member
Dec 8, 2012
82
13
thanks a lot, it really works
I have a question.

I have a font i'd like you use. In windows, i can set it to be bold, bold with italics, etc. etc.

Does android not do the same thing automatically? Would i have to put together a sample of these already bolded and italicized to get it to function properly?
 

c_live_lee

Senior Member
I have a question.

I have a font i'd like you use. In windows, i can set it to be bold, bold with italics, etc. etc.

Does android not do the same thing automatically? Would i have to put together a sample of these already bolded and italicized to get it to function properly?

No. Android will not allow the changing of fonts, between italic, bold, etc, on the fly. If you do want to use one of those for your font in Android, you'll need to go to where ever you got the font from which, I assume in your case, would be Windows. Find the font folder in Windows and look for the name of the font you wish to use, except look for one with "ital", "bold", "boldital" or something similar appended at the end of the name. Each version of a font has its own font file, in my experience.

Sent from my DROID RAZR using Tapatalk 2
 

Steven87

Senior Member
Jul 2, 2012
402
85
Corrientes
Sorry forboff topic but is there a way to change the icons? I mean in the settings..

Sent from my XT910 using xda premium
 

c_live_lee

Senior Member
Sorry forboff topic but is there a way to change the icons? I mean in the settings..

Sent from my XT910 using xda premium

There is no way in settings, Steven. You can go to the Play store and pick up Desktop Visualizer, which will allow you to place icons of various sizes and shapes on your home screen or, you can run pretty much any Home replacement app, such as Apex, Trebuchet, Go Launcher, Launcher Pro, ADW Launcher, etc. I believe they all allow for icon replacement. Some may require the paid version though, to add that feature. But don't quote me on that.

Sent from my DROID RAZR using Tapatalk 2
 

SupriseMadaafaca

Senior Member
Mar 3, 2013
54
18
ROM Toolbox !

Just use ROM Toolbox, use it almost every day. It also allows u, beside the hole bunch of features, to change system fonts. U can download some from their server or use ur own ones from the sd-card.
 

c_live_lee

Senior Member
"Of course, it's not necessary to go the manual route but, I think it's beneficial to anyone in the sense that it can give you a slightly more intimate understanding of how things work behind the scenes, AND it will allow you to show more consistency, when changing your fonts, than you would while using an app such as Rom Toolbox or the more specialized font changing apps." - from the OP. This thread isn't meant for anyone who ONLY wants to change one font on their device. It's meant for those who wish to A: change multiple fonts and/or B: learn a little about their device.
 
Last edited:
  • Like
Reactions: Odlanyer22

beatsmithy

New member
Mar 16, 2013
4
0
Will it work on CM10.1 JB 4.2.2?

Please throw some light if anyone has tested on the aforementioned ROM. Thank you.
 

Mobzter

Senior Member
May 9, 2010
1,345
209
"Of course, it's not necessary to go the manual route but, I think it's beneficial to anyone in the sense that it can give you a slightly more intimate understanding of how things work behind the scenes, AND it will allow you to show more consistency, when changing your fonts, than you would while using an app such as Rom Toolbox or the more specialized font changing apps." - from the OP. This thread isn't meant for anyone who ONLY wants to change one font on their device. It's meant for those who wish to A: change multiple fonts and/or B: learn a little about their device.

nice write up there.. ive not used it but based on my experience seems to be right i believe, although i did used to create a zip file to flash (seen as i had a boot recovery) cause for me it made things easier plus didnt have to do the permission fix. still i like the fact that your helping people to understand things better.. keep it up! :good::eek:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 15
    [FONT=verdana,geneva,sans-serif]Hello all, I'll start this off with the usual...[/FONT]
    [FONT=verdana,geneva,sans-serif]If you break your $!#7, it ain't my fault! No one twisted your arm here. ;)[/FONT]

    [FONT=verdana,geneva,sans-serif]Anyway, I've noticed a few instances in these forums where someone will have questions about changing fonts so, I thought I would reprise my old[/FONT]
    [FONT=verdana,geneva,sans-serif]Sense 3.0/3.5 Thunderbolt tutorial and adapt it to our RAZRs and MAXXes, for those who would like to know the ins and outs of it. This will likely work for many devices in general and, I'm fairly certain it will work for both the CDMA/xt912 and the GSM/xt910 RAZRs. I can't guarantee this though so, check for similarities on your GSM device before diving in.

    Of course, it's not necessary to go the manual route but, I think it's beneficial to anyone in the sense that it can give you a slightly more intimate understanding of how things work behind the scenes, AND it will allow you to show more consistency, when changing your fonts, than you would while using an app such as Rom Toolbox or the more specialized font changing apps.
    [/FONT]

    [FONT=verdana,geneva,sans-serif]A quick warning here, before you get started:[/FONT]
    [FONT=verdana,geneva,sans-serif]You SHALL find yourself in a bootloop if you fail to follow instructions!![/FONT]
    [FONT=verdana,geneva,sans-serif]But, this is absolutely nothing to worry about, as long as you're prepared. Create a backup in SafeStrap (or whatever recovery applies in your case) prior to moving forward, if you haven't already. Should you find yourself in the bootloop, of which you were warned, there are merely two things you need to do:[/FONT]

    [FONT=verdana,geneva,sans-serif]1. (And this is HUGELY important) Shut the hell up! I hear you blaming me! I promise, YOU screwed up! lol[/FONT]

    [FONT=verdana,geneva,sans-serif]2. All you need to do is to perform an advanced restore from SafeStrap. Simply restore the System partition and don't worry about anything else. This should take less time than a full restore, which is unnecessary here.[/FONT]

    [FONT=verdana,geneva,sans-serif]So, here we go...[/FONT]

    [FONT=verdana,geneva,sans-serif]You'll need a root-enabled file explorer to do this. Root Explorer is my old stand-by but, Rom Toolbox also has one included. Another excellent option (coincidentally, a FREE option) is ES File Explorer. Any of these will work fine here.[/FONT]​



    To begin, I'll give you an idea of what you'll see in the "System/fonts" folder, as well as, offer an explanation for the purpose of the ones I know.
    screenshot.jpg



    • AndroidClock.ttf = Stock Digital Clock Widget & Dock/Desk Clock ("Clock" in App Drawer).
    • AndroidClock_Highlight.ttf = Lock Screen Clock.
    • AndroidClock_Solid.ttf = Unsure of its purpose.
    • Clockopia.ttf = Former Stock clock font but, seems unused by the system in Android 4.0+.
    • DroidSans.ttf = Apparently unused in Android 4.0+. System font from previous Android versions.
    • DroidSans-Bold = Apparently unused in Android 4.0+. Bold system font from previous Android versions.
    • Roboto-Regular.ttf = This is the one always referred to as the "System Font." It yields the most noticeable results and, is the one all the font changer apps alter. Affects almost all text on your device.
    • Roboto-Bold = The bold version of Roboto. Not seen everywhere but it is seen. Opening your Gmail app to an email in your inbox will allow you to see Regular and Bold in the same occurrence. The sender's name will be in bold and their address will be in Regular. I recommend changing if you have a bold version of your replacement font.
    • Roboto-Italic = Unsure of its frequency of use but, it's not often. However, if you have a matching Italic font, it can't hurt to use it.
    • Roboto-BoldItalic = Unsure of its frequency of use but, it's not often. However, if you have a matching Bold Italic font, it can't hurt to use it.
    • There are also various other languages of the Roboto font in the "System/fonts" folder. If a particular language is your default, I'm sure it's obvious what adjustments you would need to make with regards to font replacement.

    Now that you have an idea of the fonts you may want to replace, you've reached a crossroads. If you ONLY feel the need to change Roboto-Regular, then you may want to consider aborting here and using one of the apps.
    If however, you want more, this may be your thing. Here's what you do next. And it doesn't have to be done this way precisely but, I've found it to be much simpler than the alternatives.

    1. You'll want to open your file explorer and navigate to the root of your SD-Ext card. Here you'll create a folder. Name it something you'll remember. It will contain copies of your personal fonts that you'll be wanting to use - just the ones which correspond to the System fonts you wish to be changed. Make the copies of your fonts and place them in this folder.

    2. Re-name your fonts to PRECISELY match the names of their System font counterparts. P-R-E-C-I-S-E-L-Y! ;)
    IMPORTANT NOTE: Android DOES NOT recognize fonts with the "otf" or "open type font" file extension. It ONLY recognizes fonts with the "ttf" or "Truetype Font" file extension. In my experience though, you may simply change "otf" to "ttf" while re-naming them and they'll work fine.

    Just so we're clear, here's an example.




    If you're replacing Roboto-Bold.ttf,
    with a font named Neutraface-Bold.otf,
    you don't JUST change it to "Roboto-Bold.otf". You change it to "Roboto-Bold.ttf"​

    3. Now that you have all your fonts re-named to match their System Font counterparts, it's time to multi-select them all and either copy or move/cut (COPY is safer).

    4. Navigate to the System folder, which is ABOVE the root of your SD card in the hierarchy. Within this folder, you'll find the "fonts" folder. Make sure your file explorer is set to "R/W" or "Read/Write" rather than the "RO" or "Read Only" setting. Once you've done this, paste your fonts within the "fonts" folder. When it asks you, select the box that says something to the effect of "do this for all" then allow it to overwrite the existing files.
    screenshot%281%29.jpg


    5. We're almost there now! Next thing to do is to change permissions (Usually a long-press option) for each of the pasted font files. Right now their permissions read something like this - "rwxr-x".
    It needs to read like this - "rw-r-r".

    Bringing up the permissions options will probably look like nine check boxes arranged neatly in a square or rectangular pattern. That's three rows of three boxes.
    screenshot%282%29.jpg


    Currently it looks like this:
    x= a check
    o= unchecked

    o o o
    x x x
    x o x

    OWNER= No Permissions
    GROUP= Read and Write and Execute
    OTHERS= Read and Execute

    It needs to look like this when you're done. And it needs to be done for EVERY file you pasted in this folder.

    x x o
    x o o
    x o o

    OWNER= Read and Write
    GROUP= Read
    OTHERS= Read

    6. Reboot and enjoy your triumph over The Man! :victory:
    2
    Thanks

    Thanks a lot for How-To guide.
    1
    great work... thanks....
    1
    thanks a lot, it really works
    1
    "Of course, it's not necessary to go the manual route but, I think it's beneficial to anyone in the sense that it can give you a slightly more intimate understanding of how things work behind the scenes, AND it will allow you to show more consistency, when changing your fonts, than you would while using an app such as Rom Toolbox or the more specialized font changing apps." - from the OP. This thread isn't meant for anyone who ONLY wants to change one font on their device. It's meant for those who wish to A: change multiple fonts and/or B: learn a little about their device.