Skip to main content

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 

 




Comments

  1. Hi Usha,

    Thanks for a nice post. I was able to install the font. I failed to put my system folder back to read only mode. The command mount -o ro,remount /dev/mtdblock4 /system didn't run. I was shown usage information of mount command. I believe that the /system folder is still in write mode. Can you please help me out!

    Thanks,
    Kiran

    ReplyDelete
  2. Hi
    After this I can read my world or excel file which is typed using nudi 01e?

    ReplyDelete

Post a Comment

Popular posts from this blog

Simple ListView Adapter and list item select

When you are using a listview in your applications many a times you will write your own adapter to display item. But if your list is very simple showing a list of strings, you can use inbuilt adapters like ArrayAdapter, SimpleCursorAdapter etc.

ArrayAdapterLet us look at an example

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ListView android:layout_height="wrap_content" android:id="@+id/listView1" android:layout_width="match_parent" android:layout_margin="20dp"> </ListView> </LinearLayout>

And add these lines to the onCreate method of the activity.

super.onCreate(savedInstanceState); …

Drawables in Android - Layer drawable

Let us see how to use layer drawable. You can have two or more bitmaps on different layers to create such a drawable

Using xml:

You should use layer-list in your xml file to create layerdrawable. Here is layer.xml
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <bitmap android:src="@drawable/whiteicon" android:gravity="top|left"/> </item> <item> <bitmap android:src="@drawable/blueicon" android:gravity="top|left"/> </item> <item> <bitmap android:src="@drawable/redicon" android:gravity="top|left"/> </item> </layer-list>
We are using three different bitmaps whiteicon.png, redicon.png and blueicon.png which are present in /res/drawable/mdpi folder. All these are of different sizes and aligned to top left. This drawab…

DatePickers in Android

DatePicker is a view which lets the user select a date showing a calendar or 3 spinners for dd, mm and yy.

Let us see how to use this.
Easy Method: To use a DatePicker you can use DatePickerDialog. This can be created and shown programmatically too.

publicvoidonCreate(Bundle b){/*********/ Button btn =(Button)findViewById(R.id.btn); btn.setOnClickListener(new View.OnClickListener(){@OverridepublicvoidonClick(View v){ showPickerDialog();}});}privatevoidshowPickerDialog(){ DatePickerDialog dtPickerDlg =new DatePickerDialog(this,this, 2017,10,20); dtPickerDialog.show();}

In our xml file, let us have a button and in the onclick listener of the button, let us display the date picker dialog - we call showPickerDialog.

In showPickerDialog,  we are using a random date to initialize.

The first  parameter is the context. Second parameter is the class which implements the interface OnDateSetListener. Next three parameters are year, month (Jan is 0) and …