Saturday, August 6, 2011

How to install custom (kannada e.g.) font in your Samsung phone

I was struggling to install the kannada font in my Samsung galaxy 551 since 3-4 days and today I finally succeeded.

First and foremost, you need to root your android phone. Rooting means you should get super user access. Without superuser access, you can not copy your ttf file to /systems/fonts folder.

There are many free apps available to root your android phone. The one I used is,  SuperOneClick. You should download and unzip the program to your pc. And then connect your android phone with usb cable.  Enable usb debugging mode.  Then start SuperOneClick.exe  and click on the root button. The program will root your phone.
For more detailed instruction on how to install superoneclick please go through this link 
I suspect, once rooted, the phone needs to be rebooted again.
You can be sure if you are rooted if when you type su in terminal on phone , superoneclick will ask your permission for root access to terminal program.

Next your terminal will show # instead of $

Next set of commands can be given from terminal emulator or adb on your computer.


Next you need to remount /system folder in read write mode.





mount -o remount /dev/mtdblock4 /system
mount -o remount /dev/mmcblk0 /sdcard

Next backup your DroidSansFallback.ttf

cd /system/fonts
cp DroidSansFallback.ttf /sdcard
Delete this file
rm DroidSansFallback.ttf
Now copy your kannada/required font file to DroidSansFallback.ttf. I have used Sampige.ttf


cat /sdcard/Sampige.ttf > DroidSansFallback.ttf


Mount the system folder back in read only mode
 
mount -o ro,remount /dev/mtdblock4 /system

Enjoy your favorite news or other contents  in your custom font.

 Thanks to the article
How to install custom fonts on rooted droid phone