New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Highwind33
Old
(Last edited by Highwind33; 22nd September 2009 at 04:51 PM.) Reason: Missing information
#1  
Junior Member - OP
Thanks Meter 0
Posts: 5
Join Date: Feb 2009
Default Installing Thai (and probably other languages) language on HTC Hero

I've just got my hands on a HTC Hero (Orange UK) yesterday (from my brother, @smartbrain)
Here's how I was able to install Thai language fonts onto my Hero, step - by step.
It's really simple. (I did this on windows7 but xp should be the same)

1. First off, root your hero. I rooted my using Dayzee's instructions posted here.
http://forum.xda-developers.com/show...5&postcount=38

2. After you have your hero rooted. It's time to install the fonts.
(The process here is based on a post (installing Thai fonts and keyboard on HTC magic) by YSR on pdamobiz http://www.pdamobiz.com/forum/forum_...ID=220019&PN=1 )
I believe the same process can be applied to other language fonts though I have not yet (and probably will never) test this.
To start the process you'll need these files.
DroidSansWithThaiFontsv1.zip These are the fonts we'll be using


3. Open up the command prompt (windows+R then type cmd and enter)
before installing the fonts you'll need to enable read/write in the system/fonts folder first.

go to the tools folder in your Android SDK using the command prompt (mine is J:\andsdk\tools)
type in
"adb shell"

"su" (If you've rooted your Hero properly, this should work and you should see a "#" sign, if it does not, go back to the rooting instruction by Dayzee in the link above.)

"mount -oremount,rw /dev/block/mtdblock3 /system" this is to make the system folder read / writable, then lastly.

"chmod 777 system/fonts/" (Yes, this is brutal, Do not forget to re-chmod this to chmod 755 when you're done. )
and you should be ready.

4. It's now time to push in the fonts.
Unpack the font pack in the link provided into the \tools\ folder and start another command prompt
point your location to the tools folder in your sdk and type in

"adb push DroidSans.ttf /system/fonts/DroidSans.ttf"
"adb push DroidSans-Bold.ttf /system/fonts/DroidSans-Bold.ttf"
"adb push DroidSerif-Regular.ttf /system/fonts/DroidSerif-Regular.ttf"
"adb push DroidSerif-Bold.ttf /system/fonts/DroidSerif-Bold.ttf"
"adb push DroidSerif-BoldItalic.ttf /system/fonts/DroidSerif-BoldItalic.ttf"
"adb push DroidSerif-Italic.ttf /system/fonts/DroidSerif-Italic.ttf"


5. Shutdown and re-boot your Hero. it should now be able to display Thai.

I haven't been able to get the keyboard to work yet. but I don't need that anyway so this is good enough for me.
Hope it helps.

sample picture

edit: I forgot the mount -oremount... command line, fixed it, shpould be alright now. Have fun with your Hero!
 
ghoonk
Old
#2  
Senior Member
Thanks Meter 0
Posts: 183
Join Date: Dec 2008
Location: Dubai, UAE
Hey, good stuff. On a parallel track, do you know how I can create a font pack with Arabic fonts?
 
rashidi
Old
#3  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Sep 2009
Default copy fonts

Hi,
I rooted as you told. But when I tried to push fonts , I faced problem. The problem is after rooting i see "#" in CMD which then I could not copy fonts. The massage is the font folder in /system/fonts has not unblocked. Any idea ?
 
adrian999
Old
#4  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Sep 2009
Smile Many thanks

Many many thanks. Very well explained and it does exactly what I want. I can now read messages from Thailand!
 
Drizzy Drake Rogers
Old
#5  
Banned
Thanks Meter 0
Posts: 1,032
Join Date: Jun 2009
you dont need to install all the fonts, all you need is a custom CID/default.xml

for example on my custom rom I have over 30 languages! no fonts needed!

just an FYI
 
chuti98
Old
#6  
Member
Thanks Meter 0
Posts: 87
Join Date: Dec 2005
Location: London
Quote:
Originally Posted by Drizzy Drake Rogers View Post
you dont need to install all the fonts, all you need is a custom CID/default.xml

for example on my custom rom I have over 30 languages! no fonts needed!

just an FYI
but original font not contain Thai language. Thai language is different from chinease that why we have to install them. I try custom lacale before and its not work for our language
Samsung Omnia i900
HTC Hero Modaco 2.2 Core
RA-HERO-V1.2.2
63.18.55.06EU
16gb Class2 microSD
 
Drizzy Drake Rogers
Old
#7  
Banned
Thanks Meter 0
Posts: 1,032
Join Date: Jun 2009
Quote:
Originally Posted by chuti98 View Post
but original font not contain Thai language. Thai language is different from chinease that why we have to install them. I try custom lacale before and its not work for our language
yea some fonts need change because the locale is not supportive to certain languages!

i have used CID all the time with filled fonts and works great, i dont use all languages so kinda hard to tell whats really supportive!
 
plege
Old
#8  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Oct 2009
When I try to push the fonts in i get the following error msg "adb: not found.
I extracted the .zip file into c:\sdk\tools
please help.. what do I do?

Thanks
 
plege
Old
(Last edited by plege; 18th October 2009 at 01:56 PM.) Reason: dublicate
#9  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Oct 2009
Default Can't push in the fonts

When I try to push the fonts in i get the following error msg "adb: not found.
I extracted the .zip file into c:\sdk\tools
please help.. what do I do?

Thanks
 
monsterday2002
Old
#10  
Member
Thanks Meter 2
Posts: 44
Join Date: Oct 2009
thanks,

how to make sure the browser is reading from /system/fonts directory?

Certain website says fonts to be copied to current user under .fonts directory.

Which is considered the user directory for android.


XDA PORTAL POSTS

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more

Get the Android 4.2.2 Status Bar on Your Gingerbread-Based Samsung

There are still quite a few of folks who run Gingerbread on their … more