Change System Fonts | Root Not Required | Updated New APK - LG Optimus 2x

Okay, so I'm working on modding the fonts app on the 2x (Settings|Display|Display font) to get some custom fonts in there. I can't believe the ones they included.
Update: APK for Root Users
If you're rooted then you can still use this method but you may also want to have a look at this thread.​In the meantime here's how you can add *any* TrueType font you want as a system font to the 2x. It's quite easy and doesn't require root.
First of all, the fonts available via the above menu are stored in '/system/app/Fonts.apk' which is quite a tricky app and they're cached to '/data/data/jungle.app.fonts/tmp/'. To replace a font all you need to do is swap out a font file in the cache directory with an alternative TrueType font. This is a work-around until I can mod the app and as a result you can not yet change the name of the font.
** DO NOT REPLACE DroidSans or Jungle Gothics **
To replace a font follow these instructions:
1. Decide on a font you do not want:
Love = SJlover.ttf
Playful = SJplayful.ttf
MyHeart = SJmyheart.ttf
Ballerina = TDballerina.ttf
Display = TDdisplay.ttf
2. Decide on a font you want to include:
You can use any TrueType font (*.ttf) from any Windows or Mac or any font web site. I use LuxiSans for my ROM for the Nexus One (Kang-o-rama) and think it also works great on the 2x.
3. Rename your chosen font to the one you want to replace:
For example, you would rename the font linked above from 'LuxiSans.ttf' to 'SJmyheart.ttf'. Note that this is case sensitive.
Use the list above to determine the correct file name.
4. Copy the new font over the old font:
This is not permanent, this is reversible.
Settings|Display|Display font -> DroidSans
Reboot
Use any file manager, explorer or ADB to copy your replacement font
ADB commands (example only, use your chosen font name!):
Code:
adb push [COLOR="blue"]SJmyheart.ttf[/COLOR] /sdcard/
adb shell
cp /sdcard/[COLOR="blue"]SJmyheart.ttf[/COLOR] /data/data/com.jungle.app.fonts/tmp/
reboot
5. Select new font:
Settings|Display|Display font
Font will display correctly but will have old name (until I mod the app)
*. To Revert:
Delete '/data/data/jungle.app.fonts/*'
Reboot
*. Remember:
Don't 'say' thanks, 'click' thanks...

This is great!
Can I use this to get a smaller system font that will fit more lines into menues and notifications?
Will it shrink that pesky oversize (personal opinion) watch font in the right corner?
Also, I read that this change also applies to the browser when rendering web pages, is this the case and can this lead to pages having misalligning in pages made for a specific font size?

atkhobby said:
This is great!
Can I use this to get a smaller system font that will fit more lines into menues and notifications?
Will it shrink that pesky oversize (personal opinion) watch font in the right corner?
Also, I read that this change also applies to the browser when rendering web pages, is this the case and can this lead to pages having misalligning in pages made for a specific font size?
Click to expand...
Click to collapse
Yes to all of the above.
I agree the clock is far too big. You can use a smaller font at this affects everything including the browser. Some fonts work better than others. You can always replace two or three of them with different fonts to try them out.
It doesn't however change the font pitch - so 20 is still 20, it doesn't change this down to say 18. This means that bigger text will still be bigger... but a little bit smaller if your font is smaller... understand?
The font I linked above is slightly smaller/finer than the stock ones and seem to work well.

New APK Available
I've published a new apk for root users for those that are interested.
See here: http://forum.xda-developers.com/showthread.php?t=994544

hi,where is this '/data/data/jungle.app.fonts/*' located?
i cant find it...im using the es file explorer..Not rooted..
this is my FIRST android phone
so pardon me..im trying to read much knowledge here..very huge forum..
coming from symbian..

dzel said:
hi,where is this '/data/data/jungle.app.fonts/*' located?
i cant find it...im using the es file explorer..Not rooted..
this is my FIRST android phone
so pardon me..im trying to read much knowledge here..very huge forum..
coming from symbian..
Click to expand...
Click to collapse
No problem.
I don't think ES File Explorer can see the data partition without root access and ES root mode does not work on LG O2x.
You will need to use adb or try another file manager from the market...

I'm getting "permission denied" when entering "su"... I'm not rooted, what am I doing wrong? Thanks

.:george:. said:
...what am I doing wrong?
Click to expand...
Click to collapse
.:george:. said:
...I'm not rooted...
Click to expand...
Click to collapse
^^^ That...

Ok than... what the hell is this? Change System Fonts | Root Not Required

lol, omg
.:george:. said:
Ok than... what the hell is this? Change System Fonts | Root Not Required
Click to expand...
Click to collapse
lol... that's quite amazing... you're 100% correct! Oh dear...
The instructions are wrong...
And you're the first person to even point it out...
Okay, you don't need that step, I'll edit the first post.
Sorry to you, I just read your post and didn't think about the thread it was in... duh, my fault there. I'm quite amazed that nobody else has reported this...
Thanks!

No harm done )
Anyway, still getting same error when trying to copy to /data/data/blahblah... ) Not really sure one can achieve this without root... ) Any ideas?

It can be done without root, /data is read/write... not sure what's going on sorry.

Related

G1 FONTS! Post them here!!!!

Hey guys, since u all can see that the "original fonts" of G1 is same as other phone and surely "boring". So i think it will be unique if G1 has the other kind of fonts. So here where mine come from http://forum.xda-developers.com/showthread.php?t=480328
Well because i dont know how to take out the front so just download the theme down and install it. After than u can install a different theme over it and the fonts will be there still.
Or u can try to delete the framework and app inside the folder and install it (dunno if it will work because i never try it)
And if anyone else got any kind of fonts that can install in G1 please post it here for sharing.
Here below is some pic about my fonts:
couldn't any font be put on the G1? i can't see why only some would work.
Not sure of compatibility but i know that some fonts dont look right if they are too small. One example i can think of is segoe ui. it is a very nice font but doesnt look right below 8.
Font doesnt bother me, it is very legible and clean and matches most themes.
does anyone know how to change the font? and if o does anyone know where i can get a good font? i have 1.42 rc33
If I can figure it out I really want to make just straight Font update.zip files so that people could just download the font that they want install it over the theme that they have and presto!! There it is! If anyone wants to help me figure this out Private message me! I really want so different fonts on my phone too! Cheers!
Hm........if u read my first post, i did show u how to install the fonts i have above, but that all i know lol. Sorry i cant help
I've done that too. What I really want to do is just make a bunch of update files that only contain the font to be updated. That way it doesn't take long to update and it would be a rather small file that people could hopefully swap out even if they have apps installed and such as opposed to having to having a fresh install of RC33...
It took me about a week just to get the nuts to root my phone to begin with and I'm down to 1 so I don't even have a test phone to mess up.
I'm going to read over the theme creation threads a few more times and see if I can do it alone. I will post my results to you sir!
Yea good luck to u lol.
As for me, everytime i get the gut to try to learn how to make a theme by myself. A big headache hit me so i stopped lol.
And yea i didnt got the gut to root my phone either into i give my phone to a friend to make it can read vietnamese (G1 cant read some words of Vietnamese). And when he return it too me, he told me my phone is rooted lol i still dont know should i say thanks to him or f*** him
with the guicci theme the creator added his own font that you apply as update.zip i think its old english bt its really hard to read idk how he created it tho but this is wat u mean bt an update.zip font right? i would really like to see fonts like that and i kno it can b done i just wish i knew how to do it
i wonder how is done here is a post where it has only font update
http://forum.xda-developers.com/showthread.php?t=468436
how can u sign the fonts only? dont look that hard
fonts only
http://www.fightforthepits.com/Androidstuff/update-fonts.zip
Nitro212 said:
i wonder how is done here is a post where it has only font update
http://forum.xda-developers.com/showthread.php?t=468436
how can u sign the fonts only? dont look that hard
fonts only
http://www.fightforthepits.com/Androidstuff/update-fonts.zip
Click to expand...
Click to collapse
Thank you!
Question though. Can I just replace the TT font files with a different set of them and re zip it? That sounds way to easy but I hope so. lol
I'm wondering how you can include different fonts in the update...
when I view the files in a font update.zip i can see all the .ttf files but I don't know which ones are used under what circumstances. I'd like to not have the same font for everything as that kinda sucks...
jdwash11 said:
I'm wondering how you can include different fonts in the update...
when I view the files in a font update.zip i can see all the .ttf files but I don't know which ones are used under what circumstances. I'd like to not have the same font for everything as that kinda sucks...
Click to expand...
Click to collapse
Yea I was thinking the same thing, what font is for what? Do we just change the name of the font & replace it in the update.zip & resign? Or is there more to it?
dandaninc said:
Thank you!
Question though. Can I just replace the TT font files with a different set of them and re zip it? That sounds way to easy but I hope so. lol
Click to expand...
Click to collapse
not sure, have not tested it.. i was bout to do the same.. edit the files but idk if the cert will give me errors :/ but than again... i don't know what font is for what lol
i did it found the font i wanted to use and and copied it to the zip and renamed them to "droidsans.ttf" and "droidsans-bold.ttf" tried to update it but it won't.. forgot what it said but it aborted the installation..
Probably that the font was in use
anddep said:
i did it found the font i wanted to use and and copied it to the zip and renamed them to "droidsans.ttf" and "droidsans-bold.ttf" tried to update it but it won't.. forgot what it said but it aborted the installation..
Click to expand...
Click to collapse
what you need to do is sign your update. Also make sure it's a true type font, I don't think it will work otherwise.
Geo411m said:
what you need to do is sign your update. Also make sure it's a true type font, I don't think it will work otherwise.
Click to expand...
Click to collapse
Thank you for the signing comment I would have forgot to do that and just started getting pissed because it wouldn't work. I think that renaming the font to the ones in the file should work. I will try this and get back to everyone here. I really want this to work...
Also if I do get this to work than I will start making a bunch of random font update files and start a thread for it! Cheers!
G1 fonts! Post it here.
Dont start a new thread, that is what this thread is for, just post them here.
I am sure this will work, just make sure the font is True Type.
Don't you need an install script for it to know where to copy the file(s)? You can't just have a file called update.zip with some files inside of it and expect it to know what to do with them. There would need to be a update-script file located in the META-INF/com/google/android directory of your update.zip. It would need to have a line such as:
copy_dir PACKAGE:system SYSTEM:
and the fonts would need to be located in system/fonts of your update.zip. So your update.zip would look like what I am going to attach, however with fonts. You could probably just put them into my attached empty zip template, resign the zip and be good to go. I put the original fonts in it just so I could test sign it and verify the manifest is creating properly.
You can download it here:
Fonts Update
This should work. Not sure if you had an install-script in your file, but I am assuming you did not.

Changing Android Font

Alright, I am using Droid Explorer, it connects fine to my phone I could use all the other stuff (screen cast, desktop sms, and screen shot thats mainly what I use) but I'm trying to change the font of the actual phone, I downloaded a font off of dafont and renamed it DroidSans (they both are .ttf, both the android font and the font I downloaded) so I figured I could delete the font out of /HT849GZ22284/system/fonts/ (DroidSans.ttf) and then copy over the downloaded font renamed DroidSans.ttf and it would be over.
I just thought of this idea, it might not work or maybe you guys perfected the idea of it and I'm just catching onto it.
But any ideas why the file wont delete?
Did you make the partition rw?
you need to make it writable to delete files
try typing adb remount before deleting

So, how to change GT540's font?

I've been trying for several days to change system fonts to the ubuntu font, and every tutorial I've come across doesn't work with my rooted GT540.
Has anybody managed to do that?
I tried using both update.zip methods and by means of applications... no luck with both methods.
fjsferreira said:
I've been trying for several days to change system fonts to the ubuntu font, and every tutorial I've come across doesn't work with my rooted GT540.
Has anybody managed to do that?
I tried using both update.zip methods and by means of applications... no luck with both methods.
Click to expand...
Click to collapse
I couldn't get it to work either. I think the fonts are overwritten when the device is booted. Would be nice to change the fonts.
Finally, I got it working. Lg GT540 doesn't use droid font, but some other font named SJSans.ttf, wich is also on /system/fonts (I've never noticed this font there lol)
Just replace that font using root explorer. Just in case, fix permissions of replaced files to be like the other ones in that folder (I don't know if this is necessary though). Reboot.
Here's Ubuntu font family, with filenames ready to copy paste in /system/fonts.
It didn't work for me, some texts were readable but some weren't the clock wasn't showing..
TopGunBG said:
It didn't work for me, some texts were readable but some weren't the clock wasn't showing..
Click to expand...
Click to collapse
It depends on the font you use, of course, and your language. If you use something like tahoma, everything should work, because this is a very complete font with support for many many characters and languages.
The ubuntu font works perfectly with Portuguese language.
I had to reupgrade and make a hard reset, the clock WAS missing! And my phone is set to English. I tryied the ubuntu fonts cuz i really like them nothing but trouble..
Ubuntu font pack works like a charm with Polish language, thanks a lot!
howdy guys - don't know how I ended up here, but if you're familiar with the regular method of changing fonts on android, the optimus is a bit different;
normal Clockopia.ttf is your SJGothicFull.ttf (this is the lockscreen clock)
normal DroidSans.ttf is your SJSans.ttf
normal DroidSans-Bold.ttf is your SJSans-Bold.ttf
I haven't tested this, but this should work for you guys with any font (you can even change the ones in my thread if you know how) Best of luck
Edit - again, if you know how, the new version of the comfortaa font is complete, so that should work as well, if not better than ubuntu.
I had same issue with clock going missing.
if your using root explorer.
hold down the font file you just move to system/font folder
select permission.
User - tick first(read) and second(write) box
Group - tick first(read) one only
Other - tick first(read) one only
so it should now look like
SJSans.ttf
[date here] rw-r--r--
restart and I got my clock text back along with my new font
lahan52 said:
I had same issue with clock going missing.
if your using root explorer.
hold down the font file you just move to system/font folder
select permission.
User - tick first(read) and second(write) box
Group - tick first(read) one only
Other - tick first(read) one only
so it should now look like
SJSans.ttf
[date here] rw-r--r--
restart and I got my clock text back along with my new font
Click to expand...
Click to collapse
It worked, Thank you, Thank you, Thank you!
Any screens with that Ubunt font on board?? Cos it looks not so cool on my PC I would like to see this mounted at phone.

Changing fonts in ICS

Has anyone had luck changing fonts in ICS? I've tried the obvious app solutions, as well as flashable .zip's, and even renaming the desired font to the same one as is in the /system/fonts folder and replacing it that way. Ideas?
...probably falls under your "tried all the obvious" courses of action, but the only way I've ever universally changed the fonts is through jrummy's "Root Tools" ...though I haven't tried it on AOKP yet.
LifeInAnalog said:
...probably falls under your "tried all the obvious" courses of action, but the only way I've ever universally changed the fonts is through jrummy's "Root Tools" ...though I haven't tried it on AOKP yet.
Click to expand...
Click to collapse
I think I finally got it. I had taken SonySketch (desired font) regular, bold, italic, and bold-italic, and masked each of them with the proper name found in the /system/fonts file and made them into a flashable .zip but this didn't fix it. Today, I just dropped all of them into a folder on my SD card, and used Root Browser to copy-paste them over from my SD to /system/fonts and rebooted...VIOLA! The entire phone has been changed. I'm going to try making a flashable .zip again though so that it's easier to share.
EDIT: Here are the new flashable .zip's. I just took the Steel Droid 5 .zip that was on my desktop and erased everything but the fonts file then duplicated it, keeping META-INF but replacing the stock fonts in the 2nd .zip with the renamed Sony Sketch fonts. Tell me how it goes if you're interested.
Absolute system or from toolbox will change your fonts to whatever you like
Sent from my XT862 using Tapatalk
olorolo said:
Absolute system or from toolbox will change your fonts to whatever you like
Sent from my XT862 using Tapatalk
Click to expand...
Click to collapse
Have you tried this in ICS though? Because JRummy's Font Installer doesn't do the trick. No font installer has (Root Tools, ROM Toolbox, Font Installer, etc.) has done the trick yet on ICS. Only my renaming trick has done it for me on ICS. I know all of the switchers work on GB.

Fonts

Here are a few font modules if you're interested. Most came from this thread. Go there to see examples:
https://forum.xda-developers.com/android/themes/fonts-flashable-zips-t3219827
If you find or have any other fonts just replace the ones from one of these modules (vrtheme/system/fonts).
Tulsadiver said:
Here are a few font modules if you're interested. Most came from this thread. Go there to see examples:
https://forum.xda-developers.com/android/themes/fonts-flashable-zips-t3219827
If you find or have any other fonts just replace the ones from one of these modules (vrtheme/system/fonts).
Click to expand...
Click to collapse
I've used a font from the thread you linked above for years. It's the HelveticaNeue iOS7 (attached below). I can just replace all the fonts in one of your Magisk modules with the fonts from the zip I linked and flash? There are so many more font names in Q. I'm not sure where to find the condensed medium weights. I suppose I could just replace them with regular weights and be fine?
Ditamae said:
I've used a font from the thread you linked above for years. It's the HelveticaNeue iOS7 (attached below). I can just replace all the fonts in one of your Magisk modules with the fonts from the zip I linked and flash? There are so many more font names in Q. I'm not sure where to find the condensed medium weights. I suppose I could just replace them with regular weights and be fine?
Click to expand...
Click to collapse
Just use the ones in your zip except for roboto-medium and regular. Copy those to the side and rename them GoogleSans-Medium and regular and copy them back so that you have copies of both the GoogleSans and roboto fonts for those two.
Edit: Use this zip. Put the fonts in both of these font folders.
Tulsadiver said:
Just use the ones in your zip except for roboto-medium and regular. Copy those to the side and rename them GoogleSans-Medium and regular and copy them back so that you have copies of both the GoogleSans and roboto fonts for those two.
Edit: Use this zip. Put the fonts in both of these font folders.
Click to expand...
Click to collapse
Thank you! I copied all the Helvetica fonts over into your zip file into vrtheme/system/fonts and vrtheme/system/product/fonts. But in addition to GoogleSans-Medium and Regular I also renamed 6 other Helvetica fonts to DroidSans, AndroidClock, GoogleSans-Bold and BoldItalic, RobotoCondensed-Medium and MediumItalic. In the past we had to wipe cache/Dalvik cache after swapping fonts, is there anything in particular I need to do after flashing the zip/module in Magisk? I don't think we can even boot into stock recovery using Magisk's patched boot image.
One more question... in the event something is incompatible and I end up in a bootloop, it sounds like using an adb shell with root privileges I am able to undo the modification? Is there any other method for restoring stock/removing files flashed with Magisk if they throw me into a bootloop?
Ditamae said:
Thank you! I copied all the Helvetica fonts over into your zip file into vrtheme/system/fonts and vrtheme/system/product/fonts. But in addition to GoogleSans-Medium and Regular I also renamed 6 other Helvetica fonts to DroidSans, AndroidClock, GoogleSans-Bold and BoldItalic, RobotoCondensed-Medium and MediumItalic. In the past we had to wipe cache/Dalvik cache after swapping fonts, is there anything in particular I need to do after flashing the zip/module in Magisk? I don't think we can even boot into stock recovery using Magisk's patched boot image.
One more question... in the event something is incompatible and I end up in a bootloop, it sounds like using an adb shell with root privileges I am able to undo the modification? Is there any other method for restoring stock/removing files flashed with Magisk if they throw me into a bootloop?
Click to expand...
Click to collapse
For bootloops, see this thread
https://forum.xda-developers.com/pixel-3a/themes/magisk-modules-disabler-booting-magisk-t3976621
Tulsadiver said:
For bootloops, see this thread
https://forum.xda-developers.com/pixel-3a/themes/magisk-modules-disabler-booting-magisk-t3976621
Click to expand...
Click to collapse
Wow, thanks for the information. I'll give it a deeper read after work. Can I bother you to look over the template zip file you linked (with my swapped fonts), just to make sure the file looks ready to flash? The only thing I did was overwrite the fonts, but I am on the latest update (QQ1A.200105.002, Jan 2020). Not sure if that requires any updates to your template. If it's too much trouble, no worries. Really appreciate all your help.
Ditamae said:
Wow, thanks for the information. I'll give it a deeper read after work. Can I bother you to look over the template zip file you linked (with my swapped fonts), just to make sure the file looks ready to flash? The only thing I did was overwrite the fonts, but I am on the latest update (QQ1A.200105.002, Jan 2020). Not sure if that requires any updates to your template. If it's too much trouble, no worries. Really appreciate all your help.
Click to expand...
Click to collapse
Looks fine. No update necessary for firmware updates.
Tulsadiver said:
Looks fine. No update necessary for firmware updates.
Click to expand...
Click to collapse
Flashed the zip and everything worked essentially great. However, it appears I have a missing glyph in whatever font file the system is using for the lockscreen/always on digital clock. The colon ( : ) is missing in the time display. Unfortunately it's pretty unsightly. Any thoughts as to where the lockscreen pulls it's fonts or how to remedy this? Didn't have this issue with these fonts on previous devices.
Ditamae said:
Flashed the zip and everything worked essentially great. However, it appears I have a missing glyph in whatever font file the system is using for the lockscreen/always on digital clock. The colon ( : ) is missing in the time display. Unfortunately it's pretty unsightly. Any thoughts as to where the lockscreen pulls it's fonts or how to remedy this? Didn't have this issue with these fonts on previous devices.
Click to expand...
Click to collapse
"Flashed the zip" doesn't give me much to go on. Did you flash all of them and get this, a particular one, maybe? Could you possibly be a little more specific?
In this folder there are several. Try these as I have done some work on them.
Tulsadiver said:
"Flashed the zip" doesn't give me much to go on. Did you flash all of them and get this, a particular one, maybe? Could you possibly be a little more specific?
In this folder there are several. Try these as I have done some work on them.
Click to expand...
Click to collapse
I'm sorry. I flashed the Magisk module zip you provided as template (originally called "mymagiskfontelegance"), after swapping over all my Helvetica fonts and renaming the file. I'll attach it to this post. The only place I see the missing glyph is for the colon on the lockscreen clock (see screenshot attached in previous post). It looks like the font used for the clock may be a medium or bold font file?
Ditamae said:
I'm sorry. I flashed the Magisk module zip you provided as template (originally called "mymagiskfontelegance"), after swapping over all my Helvetica fonts and renaming the file. I'll attach it to this post. The only place I see the missing glyph is for the colon on the lockscreen clock (see screenshot attached in previous post). It looks like the font used for the clock may be a medium or bold font file?
Click to expand...
Click to collapse
The only thing I could get to work was a thin font.
Deleted
Tulsadiver said:
The only thing I could get to work was a thin font.
Click to expand...
Click to collapse
I always loved the lighter weights. Looks great. You saved me hours with FontForge trying to find the missing glyph. :good:
Tulsadiver said:
Here are a few font modules if you're interested. Most came from this thread. Go there to see examples:
https://forum.xda-developers.com/android/themes/fonts-flashable-zips-t3219827
If you find or have any other fonts just replace the ones from one of these modules (vrtheme/system/fonts).
Click to expand...
Click to collapse
Hey. Does anyone know if these font modules work for Android 11? I've been using a font module Tulsadiver helped me with on Android 10 for quite a while (currently on the June update, QQ3A.200605.002). Not sure if I should remove the font module before updating, or if I can still use this after the update. Apparently the update was completed while I was asleep last night, despite having Automatic system updates disabled.
Ditamae said:
Hey. Does anyone know if these font modules work for Android 11? I've been using a font module Tulsadiver helped me with on Android 10 for quite a while (currently on the June update, QQ3A.200605.002). Not sure if I should remove the font module before updating, or if I can still use this after the update. Apparently the update was completed while I was asleep last night, despite having Automatic system updates disabled.
Click to expand...
Click to collapse
I would remove it to be safe. I have a new module. It's not mine but I tweaked it so that all you have to do is add the fonts to it in the CFI folder.

Categories

Resources