When I try to replace the default "DroidSans.ttf" files to change, fonts, FREEEZE - Hero CDMA Themes and Apps

When I try to replace the default "DroidSans.ttf" files to change, fonts, FREEEZE
So after reading a theme thread, I tried to change the font.
I simply took a font file I liked from my PC (a .ttf) and copied the text file and renamed them all to the default text files in the /system/fonts folder.
I didn't know which font is used for what, (DroidSans, DroidSerif, etc) so I just copied my new .ttf 5 or 6 times and renamed each copy to the old original DroidXXXX.ttf file.
However after pushing via ADB and re-booting the phone just freezes on the htc screen, so I went to default.
Is there a particular font I toyed with I shouldnt have or is the ttf not compatible?
Im running fresh 2.0d

Where did you get the .ttf's from? If they were straight from the theme thread then pull the fonts from the phone via ADB:
adb remount
adb pull /system/fonts fonts
(copy the new .ttf's over the ones pulled from the phone and make sure the names stay the same)
adb push *Directory of the font file on your computer goes here* /system/fonts
adb reboot

poor_red_neck said:
So after reading a theme thread, I tried to change the font.
I simply took a font file I liked from my PC (a .ttf) and copied the text file and renamed them all to the default text files in the /system/fonts folder.
I didn't know which font is used for what, (DroidSans, DroidSerif, etc) so I just copied my new .ttf 5 or 6 times and renamed each copy to the old original DroidXXXX.ttf file.
However after pushing via ADB and re-booting the phone just freezes on the htc screen, so I went to default.
Is there a particular font I toyed with I shouldnt have or is the ttf not compatible?
Im running fresh 2.0d
Click to expand...
Click to collapse
Well, your problem is that you changed all the default fonts names, which is NOT correct. The only two fonts that need to be changed are: DroidSans-Bold and DroidSans... DO NOT change ANY other font names, leave them the way they are.
Here's some instructions::
1) Find the font you want (Should have two variations: A regular non-bold font and another bold font).
2) Then upon opening /system/fonts folder -- you should see these two font names: DroidSans-Bold and DroidSans
3) Change the font you have chosen to the names above and then copy them over to the /system/fonts folder -- this action should prompt you to overwrite the changes, you'll say yes and that's it.
To verify that you did infact do it correctly, you can double click on the DroidSans-Bold and DroidSans and both fonts will open up (Windows only) and at the top you will see the font name -- if it matches what you've chosen, then congrats. Now all you have to do is either adb push the fonts back to your phone or the better solution, would be to create a .zip file for easier convenience and of course to share with the XDA community. Good luck.

Related

[Fonts] Changing Fonts in a ROM

Here is a quick guide to changing Fonts in a ROM. This has worked in every Sense ROM I have tried, I have not tried in NON-Sense ROMs.
I can not take credit for the Programs/Files used. I did not make them. This is just a quick tutorial. If you are looking for a way to change the Fonts in a ROM, other than the included font, or the Stock Font, here is what I did successfully.
1. Download the Stock Fonts zip from here. Stock Font
2. Download "Font Selector v1.4" from this link - http://forum.xda-developers.com/show...04&postcount=1
3. unzip the Font selector file. Inside, you will find a file "Font Selector" open this file and open the "Fonts" file. You can browse through each fonts file and double click on one of the .ttf files to see a preview. When you find the font you want, leave that folder open.
4. Using winrar, leave the "Stock Fonts" file zipped and double click the file. Winrar will let you work in the file while leaving it zipped. Go into the Font folder and replace all the files with all the files in the font folder of your choice from Font selector.
5. Save the changes in winrar.
6. Re-sign the zip file, then load it to your sdcard. For info how to sign a zip, go to this link - http://androidforums.com/49232-post1.html (Rest assured, this is VERY easy. I did this while I was a complete NOOB here.)
7. Flash the zip through recovery.
Hope this helps.
Just adding, as it was pointed out in another thread, you can also use a program called "Type Fresh", Free in the Market, to change fonts. There is no preview in the type fresh program, so it will be trial and error, till you find a font you are happy with.
Also, the link for re-signing zips, is not just specific to this procedure. Once you follow the steps in that link, you can re-sign ANY zip files that need signing. Amon_RA recovery requires zips to be signed in order to flash them to the phone, and some developers don't sign the files. After you do the steps in the link, if you have a problem flashing a file in Amon_RA, right click the zip and select "Resign zip"
For font selector i just run the font_selector.bat while my phone is plugged in....changes it easily..
apristel said:
For font selector i just run the font_selector.bat while my phone is plugged in....changes it easily..
Click to expand...
Click to collapse
That's cool. I tried a few times with font_selector.bat, and kept getting error messages, which caused me to try to find a different way. If Font Selector works fine, for people, that is much easier. I just added this to help if people have problems using it.

Revert back to stock font?

I just installed the incognito theme and love it but was wondering how to switch the font back to stock. Is there an easy way to do this?
Sent from my DROIDX using XDA App
I'm also intrested in changing up a few fonts? And font colors too. I've browsed around most of the apk files to see if anything stands out to me but no luck... Mostly .png image files. Which ive successfully modified. But can't seem to find straight forward answers floating around for fonts in the any of the forums.
Any help pointing to the right files locations??
Why would you want to go back to the old font
If you wanna do that, the best way is to repackage the Incognito zip file with the fonts you wanna use. You can do that by:
1 Extract the files in the .zip file to some location on your computer (there should be 2 folders and a file, I think).
2 From your extracted files, go to the font folder located inside the system folder
3 Replace the fonts in that folder with any fonts you want (in your case, you'll have to download the stock fonts from somewhere) and make sure that the fonts are renamed to match the ones before
4 Once that's done, repackage the files/folders as a .zip file by jumping back out to the location of where you originally extracted the files, selecting all 3 files/folders(ctrl+ click each one), right click and "send to compressed folder (zip)".
5 Put that file on your sd card and install it the same way you installed the theme the first time.
Sent from my DROIDX using XDA App
PS: Thank you Android gods for Swype

[Tutorial] Status bar transparency

I've been seeing way too many requests for this with just about every mod possible. Considering the simplicity of this mod, the easiest way to please everyone, is for all of you to know how to accomplish this mod yourself.
BTW, this is for the status bar itself, not pulldown bar or notification background.
What you need:
- Paint.NET software (or any other image editing software that you are already comfortable with, this one seems to be the easiest for setting transparency though.)
- Your framework-res.apk AFTER you have all of your other mods applied to your phone. Otherwise you will have to apply this mod again every time you add or change mods (most likely).
- 7zip
So, you should have your framework-res.apk on your computer and 7zip installed to open the apk. Open up the framework, navigate to /res/drawable-hdpi folder. In that folder, find the file statusbar_background.png. You can either pull that file out to your computer to edit it or open it straight from 7zip (which is the best way to ensure there is no issues when pushing framework back to the phone) but you must have your editing software set as the default to open .png files.
Now once you have that file open in Paint.NET, you will see the image of the status bar as you currently have it. Up on the top toolbar, you should see the option "Layers". Click that then select "Layer properties" at the bottom of the drop-down. At the bottom of the window that pops up, you should see "Opacity" and the number set at 255 with the neighboring slider all the way to the right. I suggest using the slider because as you move it you will see the transparency applied to the bar image, allowing you to slide it around to the desired transparency.
Once you have finished setting your transparency, click the little disk image at the top left to save your changes, close the program out and you should then see a box pop up in 7zip (if you made changes without unpacking the file from 7zip first) asking if you would like to apply changes to file you edited. Say yes, then close 7zip, which may or may not state that changes have been made to the apk and if you'd like to update it, which you would say yes to if it does. If you unpacked the file from 7zip, simply drag and drop the file back into its correct spot, confirm you want to replace the file, then close it up. After all of this is done, just put framework-res.apk back into the framework folder on your phone whatever way you like, turn your phone on and you have a transparent status bar.
As a side note, you can play with Paint.net to see all of the modifications you can make to your status bar like changing colors, texture, and a few other things. One piece of advice is to have a backup framework-res.apk in case you make a mistake or something.
excuse my extreme noobness, but what is the best way to transfer the apk back and forth from the phone to computer? yes I am new to this and yes I am a retard and yes I probably shouldnt even try this..
JoeyBones1 said:
excuse my extreme noobness, but what is the best way to transfer the apk back and forth from the phone to computer? yes I am new to this and yes I am a retard and yes I probably shouldnt even try this..
Click to expand...
Click to collapse
Easiest way would be to get root explorer so you can navigate to the /system/framework folder and copy the apk from there to your sdcard, where you can just copy it to your computer. the other option would be plugging your phone into your computer, phone should be on, open up command prompt then navigate to your sdk/tools folder (get it if you dont already have it), then type "adb pull /system/framework/framework-res.apk c:\" without the quotes. the file will be in the root of your C directory. To get it back on your phone when finished, for root explorer just reverse the steps, but when moving the apk back to its proper folder, just hit the "Mount R/W" button at the top right of root explorer, copy the file back in and reboot. For alternate method, boot into recovery, mount /system partition, then in prompt after navigating to sdk tools folder type "adb push c:\insertdirectoryto\framework-res.apk /system/framework/" without quotes, then boot up and youre done.
tried this...boot looped...had to restore backup...thanks for the info though...might try again soon
BillytheKid82 said:
tried this...boot looped...had to restore backup...thanks for the info though...might try again soon
Click to expand...
Click to collapse
Did you try editing the file without extracting it or did you extract it and reinsert it?
Or you could edit the .png and use metamorph to push it into the framework-res.apk without moving or unzipping anything. And you could just keep the metamorph theme with that one .png on your sdcard to re-apply it whenever you flash a new rom, without altering any other theme elements you've already applied.
What do I edit to change the pull down notifications?
Sent from my Incredible using XDA App
thx a ton got it
transparent, transferring back to phone now..we will see
edit ..boot loops too..
i used root explorer ..extracted framework-res.apk to my sd card ,,then on my computer i opened paint.net and edited the statusbar_background.png file and then
zipped back up the framework-res and renamed to apk then copied back to my framework folder and it the forced closed and went into boot lopes...
i know im close to getting this right ..what step am i skrewing up?
i edited the file w/out extracting it...using root explorer i copied the framework res to my sdcard...plugged my phone in to comp, opened the framework res w/ 7zip, edited w/ gimp, saved all changes...unmounted phone, used root explorer and copied the new edited framework, then navigated to the original framework res and pasted the new one there to overwrite the original...then it force closed so i tried to paste it again, then the phone rebooted and boot looped? not sure if i did something wrong
Gahh Its Lee said:
What do I edit to change the pull down notifications?
Sent from my Incredible using XDA App
Click to expand...
Click to collapse
That file is a .9.png file. editing these is ridiculously difficult and ill-advised.
chrisloveskaos said:
thx a ton got it
transparent, transferring back to phone now..we will see
edit ..boot loops too..
i used root explorer ..extracted framework-res.apk to my sd card ,,then on my computer i opened paint.net and edited the statusbar_background.png file and then
zipped back up the framework-res and renamed to apk then copied back to my framework folder and it the forced closed and went into boot lopes...
i know im close to getting this right ..what step am i skrewing up?
Click to expand...
Click to collapse
BillytheKid82 said:
i edited the file w/out extracting it...using root explorer i copied the framework res to my sdcard...plugged my phone in to comp, opened the framework res w/ 7zip, edited w/ gimp, saved all changes...unmounted phone, used root explorer and copied the new edited framework, then navigated to the original framework res and pasted the new one there to overwrite the original...then it force closed so i tried to paste it again, then the phone rebooted and boot looped? not sure if i did something wrong
Click to expand...
Click to collapse
I JUST remembered that I think you need to be running a deodexed rom to allow modifications. I've always used deodexed roms and forgot that it might be a requirement for things like this. Do either of you know if what youre running is deodexed or not?
mixedlemon said:
Or you could edit the .png and use metamorph to push it into the framework-res.apk without moving or unzipping anything. And you could just keep the metamorph theme with that one .png on your sdcard to re-apply it whenever you flash a new rom, without altering any other theme elements you've already applied.
Click to expand...
Click to collapse
metamorph is definitely more useful. I just have never created anything to run with it so I don't know the process of doing so.
im running skyraider vanilla, i tried to look on the thread to see if it is deodexed and i couldn't find if it is or not...may not be...thanks for your help
mb02 said:
I JUST remembered that I think you need to be running a deodexed rom to allow modifications. I've always used deodexed roms and forgot that it might be a requirement for things like this. Do either of you know if what youre running is deodexed or not?
Click to expand...
Click to collapse
running new skyraider 3.3 and im sure it is
Yea it seems they are both deodexed, and btw I didn't know skyraider 3.3 was so awesome I'm tempted to switch over to it. But yea, I'm not sure why your phones aren't allowing the modifications to the framework. I might as well load SR 3.3 and see for myself what's up. I'll get on that later tonight when I have time and let you guys know if i figure anything out.
Use this with metamorph. It will work on any rom (tested on skyraider 3.3) except those that still use the "drawable-hdpi-v4" folder in the framework-res.apk. If your rom uses that folder, simply rename the folder it puts on your sdcard in /sdcard/AndroidThemes/HalfTransparentBar/
If you'd rather have a different transparency just replace the .png in the folder with yours.
In fact, if you want to edit ANY graphic on your rom, just put the .png in the /sdcard/AndroidThemes/xxxxxx/framework-res/res/drawable-hdpi/ folder with the same file name as the one you want to replace. And of course, do a nandroid backup just in case.
EDIT: As Berzerker7 pointed out, this file probably wont make anything transparent unless you have a modified services.jar. oops.
mixedlemon said:
Use this with metamorph. It will work on any rom (tested on skyraider 3.3) except those that still use the "drawable-hdpi-v4" folder in the framework-res.apk. If your rom uses that folder, simply rename the folder it puts on your sdcard in /sdcard/AndroidThemes/HalfTransparentBar/
If you'd rather have a different transparency just replace the .png in the folder with yours.
In fact, if you want to edit ANY graphic on your rom, just put the .png in the /sdcard/AndroidThemes/xxxxxx/framework-res/res/drawable-hdpi/ folder with the same file name as the one you want to replace.
edit: and of course, do a nandroid backup just in case.
Click to expand...
Click to collapse
Well then that simplifies a lot of things lol. Thanks for putting that up for us, makes everything even easier.
Simply swapping a file won't work. It's the same reason simply swapping a transparent image for the notification pull-down doesn't work. Opacity is controlled on another level by services.jar. You need to modify the values there, as well as swapping out for a transparent image.
Btw, this didn't work for me on SkyRaider 3.3. (Metamorph or swapping the file).
It makes the background black but not transparent on virtuous 3.0.1
mixedlemon said:
Use this with metamorph. It will work on any rom (tested on skyraider 3.3) except those that still use the "drawable-hdpi-v4" folder in the framework-res.apk. If your rom uses that folder, simply rename the folder it puts on your sdcard in /sdcard/AndroidThemes/HalfTransparentBar/
If you'd rather have a different transparency just replace the .png in the folder with yours.
In fact, if you want to edit ANY graphic on your rom, just put the .png in the /sdcard/AndroidThemes/xxxxxx/framework-res/res/drawable-hdpi/ folder with the same file name as the one you want to replace.
edit: and of course, do a nandroid backup just in case.
Click to expand...
Click to collapse
Berzerker7 said:
Simply swapping a file won't work. It's the same reason simply swapping a transparent image for the notification pull-down doesn't work. Opacity is controlled on another level by services.jar. You need to modify the values there, as well as swapping out for a transparent image.
Btw, this didn't work for me on SkyRaider 3.3. (Metamorph or swapping the file).
Click to expand...
Click to collapse
Ah, I must have already installed a theme that modified it, then.
WOOOT!
SO can't wait to try this!
Wow... epic fail on my part... edited the image, repackaged, compared to original, file sizes/compression were similar enough, so I copied it onto my SD card and went in to Root Explorer... Mistake number 1)forgot to do a nandroid OR a titanium, Mistake number 2)Renamed the framework-res.apk to framework-res.bak BEFORE I copied the new file to the /system/framework. As soon as I did that, everything went haywire so I did a battery pull and went to do it the ADB way from recovery. Thought I did that right, so I rebooted into a bootloop... Finally gave up so I decided to do mistake number 3)full nandroid restore of a backup that was admittedly a few days old (See mistake 1 lol) after which I had rearranged a few things and added more apps etc... Now on to the important stuff...
MAKE SURE YOU DO STEP 1 BEFORE ATTEMPTING ANY OF THIS AND IF YOU RUN INTO PROBLEMS, DO STEP 2 SO YOU DON'T MAKE THE SAME MISTAKE I DID!
Step 1)For the love of all that's holy, do a Nandroid and Titanium backup first!
Step 2)In Clockwork Mod Recovery, do NOT do a full restore, instead go to advanced restore and simply restore the system (the part that you were messing around with to do this mod lol I realized this gem just as I clicked "Yes" in CWM, I still have the palm print on my forehead... haha​
Hopefully you folks will have better luck than I did, but if not, hopefully I can save you some of the headache I went thru...

[Q] Replace system fonts?

I would like the change the fonts (if possible), on my lockscreen clock, battery indicator, and possibly some fonts on my calwidget and beautiful widgets clock/weather widget.
Is this possible?
Let's say I find a font pack I like, called "coolfont.ttf". How would I go about doing this?
Ok, I found an app called fontchanger that works well...I only need to find fonts online and add them to the folder.
But the lockscreen clock in CM7 isn't affected. Anyone know how to change that font?
involves rooting and using a root file explorer app (ie root explorer)
yes, but does require root and TrueType fonts (ie .TTF). i personally use the Unique.ttf from Apple's Mac OS X SL and love it. has a futuristic but readable look.
System fonts are located here:
/system/fonts
I just rename the unique.ttf font to SansDroid.ttf (this is the main default system font thats used throughout the android ui). I rename the original one w/a .orig file extension before doing this. Bad fonts can cause boot loops and in turn you will have to boot to recovery mode and then use ADB Shell command to rename the original system font back or push it if you copy from your device.
link to a guide i wrote at tech-recipes.com
http://www.tech-recipes.com/rx/1057...the-default-system-font-requires-root-or-adb/
screenshots from my nexus one but same on the G2x
Hey SeaMonkey,
Where do I find the Unique.ttf?? I really like that look on your screenshots
I use Absolute System to change fonts. There are like 1000 fonts to choose from and you don't have to do any work. Just choose the font, reboot and there it is. Love it.
Sent from my LG G2x
seamonkey420 said:
yes, but does require root and TrueType fonts (ie .TTF). i personally use the Unique.ttf from Apple's Mac OS X SL and love it. has a futuristic but readable look.
System fonts are located here:
/system/fonts
I just rename the unique.ttf font to SansDroid.ttf (this is the main default system font thats used throughout the android ui). I rename the original one w/a .orig file extension before doing this. Bad fonts can cause boot loops and in turn you will have to boot to recovery mode and then use ADB Shell command to rename the original system font back or push it if you copy from your device.
link to a guide i wrote at tech-recipes.com
http://www.tech-recipes.com/rx/1057...the-default-system-font-requires-root-or-adb/
screenshots from my nexus one but same on the G2x
Click to expand...
Click to collapse
Yes, can you either upload the Unique.ttf font for us, or point us in the right direction of where we can download it? I really like that font, but can't find it anywhere.
MMAPCPRO,
After a pretty good deal of searching many of the free font sites, I'm with you.
Any help or hints, or a zipped up .ttf file would sure help on this one.
Thanks!
tjbunch1228 said:
i use absolute system to change fonts. There are like 1000 fonts to choose from and you don't have to do any work. Just choose the font, reboot and there it is. Love it.
Sent from my lg g2x
Click to expand...
Click to collapse
never knew this was there thanks
Just paid for and downloaded Absolute System.
Its AWESOME! WELL WORTH the $1.99.
Highly recommended for the font peeps in this thread.

ICS ROM how to change fonts?

Question anyone using ICS roms. I have a question i used to use Font changer or font installer to change fonts for Gingerbread roms. For some reason this wont change anymore. It seems it is defaulted to roboto ttf files. I tried to change in system file but still no luck. If i change roboto fonts and replace my phone bricks.. Anyone knows how to change the fonts on ics? Thx
wanna now to
Is there anyone?
Have you tried to create a flashable zip for your fonts? Take a look @ /system/fonts/ and change the fonts you wanna change (DroidSans.ttf and DroidSans-Bold.ttf for example)
On your computer or laptop create a folder for /system/fonts/ and put your fonts there, renamed to reflect the fonts you wanna change. Then zip up the system folder along with a compatible META-INF folder with correct updater-script and update-binary and you should be good. Flash your newly created zip in recovery
Sent from my Nexus S 4G using Tapatalk
I do not know how to make a flashable zip file.. But i did play around with my own. I used font installer and did the following. changed the DroidSans.ttf and DroidSans-Bold.ttf. Changing those two didnt help but i checked mark on the Roboto-Regular.ttf and did the change. Yes, that did change my fonts but When i change the Roboto-Bold.ttf. My phone won't start it it will just not boot up. So only checked roboto-regular, DroidSans-bold and DroidSans and it worked. I think something to do with the bold fonts in ICS. Not sure... Wish i could try if i know how to make the flashable zip... Thx Maybe ill do some research and find out..
fergie716 said:
Have you tried to create a flashable zip for your fonts? Take a look @ /system/fonts/ and change the fonts you wanna change (DroidSans.ttf and DroidSans-Bold.ttf for example)
On your computer or laptop create a folder for /system/fonts/ and put your fonts there, renamed to reflect the fonts you wanna change. Then zip up the system folder along with a compatible META-INF folder with correct updater-script and update-binary and you should be good. Flash your newly created zip in recovery
Sent from my Nexus S 4G using Tapatalk
Click to expand...
Click to collapse
try this guys
http://glasskeys.com/2011/09/17/how...ts-on-android-cyanogenmod-phones-and-tablets/

Categories

Resources