webOS Nation Forums >  webOS apps and software >  webOS discussion > Modifying / Replacing Fonts?
Modifying / Replacing Fonts?

  Reply
Like Tree3Likes

 
LinkBack Thread Tools Display Modes
Old 06/29/2009, 03:34 PM   #1 (permalink)
Member
 
Join Date: Jun 2009
Posts: 18
Likes Received: 0
Thanks: 0
Thanked 3 Times in 3 Posts
Default Modifying / Replacing Fonts?

Hi Guys,

I am hoping someone can point me in the right direction.
I am interested in getting Hebrew working on my Pre.
I realize that only replacing the fonts will not suffice since Hebrew requires a right-to-left engine as well (which I hope someone will port from Linux at some point).
Until then - How can I modify or replace the fonts on my rooted device so that I can at least see the right characters instead of (very nice, yet still-) square blocks?

I will appreciate any assistance.

Thanks!
ohadios is offline   Reply With Quote
Thanked By: dubiki
Old 07/14/2009, 07:02 PM   #2 (permalink)
Member
 
Join Date: Jul 2009
Posts: 117
Likes Received: 0
Thanks: 25
Thanked 16 Times in 14 Posts
Default hebrew fonts

Quote:
Originally Posted by ohadios View Post
Hi Guys,

I am hoping someone can point me in the right direction.
I am interested in getting Hebrew working on my Pre.
I realize that only replacing the fonts will not suffice since Hebrew requires a right-to-left engine as well (which I hope someone will port from Linux at some point).
Until then - How can I modify or replace the fonts on my rooted device so that I can at least see the right characters instead of (very nice, yet still-) square blocks?

I will appreciate any assistance.

Thanks!
i have been searching the whole world for an answer to your question.
it seems that you and me are the only ones on the net that cares for hebrew fonts on the pre
shloime is offline   Reply With Quote
Old 07/15/2009, 02:35 AM   #3 (permalink)
Member
 
WAMS's Avatar
 
Join Date: Jul 2009
Location: MIDWEST
Posts: 117
Likes Received: 0
Thanks: 5
Thanked 11 Times in 7 Posts
Default

that sucks
WAMS is offline   Reply With Quote
Old 08/05/2009, 10:54 AM   #4 (permalink)
Member
 
Join Date: Nov 2002
Posts: 30
Likes Received: 0
Thanks: 0
Thanked 3 Times in 1 Post
Default Hebrew Fonts

Actually, the Pre already has RTL support, it's just none of the fonts in the browser have hebrew characters (though there are fonts on the device that have them). Input is another matter, though the on-screen keyboard should provide the solution to that shortly.

Anyway, if you don't mind losing some CJK support, you can simply overwrite one of the following font files on your device with one that has Hebrew characters:

VL-PGothic-Regular.ttf (Japanese)
uming.ttc (Chinese)
batang.ttf (Korean)

If you are familiar with Linux, this is easy to do. Everything you need is on the device already. The fonts are in /usr/share/fonts - I replaced batang.ttf with frefont/FreeSans.ttf and it worked like a charm (after a reboot). If you prefer another hebrew font, any TrueType font should work just fine. Palm updates will likely overwrite the changes (1.1.0 did), so you'll probably need to redo it after every update until palm decides to add official support.

Alternatively you could build your webcore from source (see opensource.palm.com) and modify PGFallbackFonts::init() to register more fonts, but I'll leave that exercise to the reader.

Finally, I'd suggest that everyone interested complain (politely) on palm's support board:
webOS Software - Palm Support Community
jwsh is offline   Reply With Quote
Thanked by seltzer, zepnik, zionmiami
Old 08/06/2009, 01:48 AM   #5 (permalink)
Member
 
Join Date: Jul 2009
Posts: 19
Likes Received: 0
Thanks: 44
Thanked 2 Times in 2 Posts
Default

i couldn't overwrite the file.. i keep getting cannot remove '/usr/share/fonts/batang.ttf': Read-only file system ...

how to do it?

ok i got it and copied it.. but still it won't show unicode characters! can you post the font file you are using? i just want to be able to read and don't care about writing now

Last edited by PapaDocta; 08/06/2009 at 03:07 AM.
PapaDocta is offline   Reply With Quote
Old 10/22/2009, 11:47 PM   #6 (permalink)
Member
 
Join Date: Dec 2004
Posts: 38
Likes Received: 0
Thanks: 0
Thanked 12 Times in 5 Posts
Default

Assuming you've already previously rooted your Pre, you can do what I just did:

1. Download the file at ftp://ftp.gnu.org/pub/gnu/freefont/f...0060126.tar.gz
2. Extract FreeSans.ttf
3. Connect your PRE as USB drive, and copy the FreeSans.ttf to the 'downloads' folder
4. Root your pre: enable developer mode, then from your Windows command prompt, type 'Novacom -t open tty://'
5. 'mount -o remount,rw /' to enter read/write mode
6. 'cp /usr/share/fonts/batang.ttf /media/internal/downloads' to backup the original batang.ttf
7. 'cp /media/internal/downloads/FreeSans.ttf /usr/share/fonts/batang.ttf' to Overwrite the preinstalled batang.ttf with FreeSans.ttf (if prompted whether to overwrite batang.ttf, answer 'y')
8. 'mount -o remount,ro /' to go back to read only
9. Reboot your phone (you may want to exit Develepor Mode first). Congratulations, you can now read Hebrew

Try at your own risk. I know nothing about Linux -- just browsed a bit and figured out how to follow jwsh's instructions.

Shalom!

Last edited by chabsin; 10/23/2009 at 08:34 AM.
chabsin is offline   Reply With Quote
Old 10/23/2009, 01:43 AM   #7 (permalink)
Member
 
Join Date: Oct 2007
Posts: 875
Likes Received: 0
Thanks: 75
Thanked 40 Times in 35 Posts
Default

Quote:
Originally Posted by chabsin View Post
Assuming you've already previously rooted your Pre, you can do what I just did:

1. Download the file at ftp://ftp.gnu.org/pub/gnu/freefont/f...0060126.tar.gz
2. Extract FreeSans.ttf
3. Connect your PRE as USB drive, and copy the FreeSans.ttf to the 'downloads' folder
4. Root your pre: enable developer mode, then from your Windows command prompt, type 'Novacom -t open tty://'
5. 'mount -o remount,rw /' to enter read/write mode
6. 'cp /usr/share/fonts/batang.ttf /media/internal/downloads' to backup the original batang.ttf
7. 'cp /media/internal/downloads/FreeSans.ttf /usr/share/fonts/batang.ttf' to Overwrite the preinstalled batang.ttf with FreeSans.ttf (if prompted whether to overwrite batang.ttf, answer 'y')
8. 'mount -o remount,ro /' to go back to read only
9. Reboot your phone. Congratulations, you can now read Hebrew

Try at your own risk. I know nothing about Linux -- just browsed a bit and figured out how to follow jwsh's instructions.

Shalom!
just for future refarance, how do i restore to default?
ericizzy1 is offline   Reply With Quote
Thanked by Mahootzki, neeranat
Old 10/23/2009, 08:30 AM   #8 (permalink)
Member
 
Join Date: Dec 2004
Posts: 38
Likes Received: 0
Thanks: 0
Thanked 12 Times in 5 Posts
Default

Start at step 4. Replace steps 6-7 with the following single command:
'cp /media/internal/downloads/batang.ttf /usr/share/fonts/batang.ttf'. reply 'y' if prompted.

To turn it back on, you'll start from step 4 and skip step 6.
chabsin is offline   Reply With Quote
Old 11/13/2009, 04:10 AM   #9 (permalink)
Member
 
Join Date: Nov 2009
Location: O2 Germany 1.3.5.2 - Dubai - Etisalat SIM
Posts: 68
Likes Received: 1
Thanks: 13
Thanked 4 Times in 3 Posts
Default

can we do the same to get Arabic fonts ??

can some one guide me, on were can i get them.

thx
p25o1 is offline   Reply With Quote
Old 11/13/2009, 06:37 AM   #10 (permalink)
Member
 
Join Date: Jan 2007
Posts: 445
Likes Received: 10
Thanks: 74
Thanked 85 Times in 40 Posts
Default

jwsh i followed your instructions and it works tnx.
Now my palm pre reads Hebrew, but i wonder why cant read Arabic as well?!!

also i downloaded some unicode and arabic fonts and did the instructions you mentioned but not working !!! even that Arabic fonts similar Hebrew fonts right to letf!!

is there any way or trick to make it read arabic as well?

Thanks in advance
amjz is offline   Reply With Quote
Old 11/13/2009, 07:08 AM   #11 (permalink)
Member
 
Join Date: Jul 2009
Posts: 19
Likes Received: 0
Thanks: 44
Thanked 2 Times in 2 Posts
Default

yep same here.. it won't read Arabic!
PapaDocta is offline   Reply With Quote
Old 11/13/2009, 07:46 AM   #12 (permalink)
Member
 
Join Date: Jan 2007
Posts: 445
Likes Received: 10
Thanks: 74
Thanked 85 Times in 40 Posts
Default

Quote:
Originally Posted by jwsh View Post

Alternatively you could build your webcore from source (see opensource.palm.com) and modify PGFallbackFonts::init() to register more fonts, but I'll leave that exercise to the reader.
Howcan i do this please?

I downloaded the webcore from opensource.palm.com and extract it but i cant find the PGFallbackFonts::init() to modify it to add mo languages!
amjz is offline   Reply With Quote
Old 11/16/2009, 12:52 PM   #13 (permalink)
Member
 
Join Date: Nov 2009
Posts: 2
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Where can I get instruction on how to root my pre?
THanks
motiso is offline   Reply With Quote
Old 11/16/2009, 01:59 PM   #14 (permalink)
Member
 
Join Date: Nov 2009
Posts: 2
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

OK I succeeded to install the hebrew fonts!!! I am so happy now

Now there is only one problem...on screen Hebrew keyboard..
Does anyone know regarding Hebrew virtual keyboard?
motiso is offline   Reply With Quote
Old 12/05/2009, 12:53 PM   #15 (permalink)
Member
 
Join Date: Dec 2009
Posts: 1
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default still gibrish!!

hello everyone,
after i learned how to root my Pre, i did what ericizzy1 suggested and my PalmPre can read hebrew now..
still, it fails sometimes with emails. for example emails sent from outlook sometimes are still in gibrish (not the subject but the content of the email)
is there a fix to that also?
thank you all
ladyTarzan is offline   Reply With Quote
Old 01/03/2010, 03:28 AM   #16 (permalink)
Member
 
Join Date: Oct 2009
Posts: 11
Likes Received: 0
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Thanks so much chabsin, not being able to get to Israeli websites was always the one thing that bothered me about the pre. I really appreciate your help.
doublebear is offline   Reply With Quote
Old 01/03/2010, 05:38 AM   #17 (permalink)
Member
 
Join Date: Dec 2007
Location: Israel
Posts: 29
Likes Received: 1
Thanks: 18
Thanked 3 Times in 3 Posts
Default ****Easier way to install fonts***

A much easier way is to use quickinstall and overwrite the existing fonts.

From the tools menu, choose "send file" and then put "/usr/share/fonts" as the destination.

I hope this will make things more simple.
Attached Images
File Type: jpg quickinstallhebfont.JPG (49.4 KB, 348 views) Email Attachment
zepnik is offline   Reply With Quote
Liked by Soorma likes this.
Old 01/04/2010, 10:59 AM   #18 (permalink)
Member
 
Join Date: Jul 2009
Posts: 10
Likes Received: 0
Thanks: 1
Thanked 1 Time in 1 Post
Default Not Working

I installed freesans using the quickinstall method detailed above, but haaretz still loads as blocks.

Do I specifically need to rename the file to overwrite another font?
yondawg is offline   Reply With Quote
Old 01/07/2010, 01:53 PM   #19 (permalink)
Member
 
Join Date: Sep 2009
Posts: 20
Likes Received: 0
Thanks: 9
Thanked 1 Time in 1 Post
Default Im still not getting it.

I tried the easy way through WebOSQuickInstall - But after I press "send to device" - I get an ERROR message:" ERROR 1: Connection refused: connect" and then: "ERROR no device found" -
My device "IS" plugged in and visible on the computer...
Can someone guide me please?

Im totaly not a computer know how!
pink is offline   Reply With Quote
Old 01/17/2010, 06:57 AM   #20 (permalink)
Member
 
pretoo's Avatar
 
Join Date: Dec 2009
Location: Poland
Posts: 79
Likes Received: 1
Thanks: 19
Thanked 11 Times in 10 Posts
Default WebOSQuickInstall Way

You have to get the read/write access.
Try to run Command Line (WebOSQuickInstall --> Tools --> Linux Command Line), enter:
'mount -o remount,rw /' (w/o quotes)
and then send Your file. It should help.
Go back to read only mode (enter:
'mount -o remount,ro /' (w/o quotes).
I didn't try this method in this particular case.
I've tried this to change character table (alternate)to polish.
-pretoo-
pretoo is offline   Reply With Quote
Reply

 

Tags
fonts, hebrew, webos

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0