02-08-2012, 12:09 AM | #1 |
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
Guide to change system fonts on PRS T1
I've decided to write a short guide on how I've made PRS T1 show book titles, TOC, bookmarks, pages in browser correctly in Georgian Unicode. I think this info might be useful to others as well. So here we go:
The outline of the process is as follows: PRS T1 fonts partition is CRAMFS this means that it's read only one can not just copy and paste font files in fonts directory even in rooted system (of course if you're not root you don't even see systems partition). That's why we need to extract fonts CRAMFS image to the reader partition that's accessible from a PC (I've done it on Windows 7 machine) then copy extracted CRAMFS image to PC (you need to have cygwin installed on PC) unpack the image with cramfsck command change the font repack back with mkcramfs command and write back to PRS T1 flash the modifed fonts image. 1. Run Terminal emullator on PRS T1 type Code:
su Code:
dd if=/dev/block/mmcblk2p5 of=/mnt/sdcard/mmcblk2p5.img 2. Move mmcblk2p5.img to root of C:\ directory on your PC, from Start/Run run CMD cd to cygwin/bin directory and type Code:
cramfsck -x d:\ /cygdrive/c/mmcblk2p5.img 3. Now you need to identify font file which you want to replace. Droid sans is responsible for the book titles, TOC and stuff. I've chosen to replace Droid Sand Thai with Georgian font. I've got Droid Sans Georgian ttf from Android SDK on my PC C:\Program Files (x86)\Android\android-sdk\platforms\android-15\data\fonts this is the path on my system. It comes with Andorid 4.0, there are other fonts as well like Armenian for example. Idea is that you have to rename not only file name to the font you want to use, to the file name of font you decided to replace, but also font name. I've done this with Font Creator v6.5 you can use any other tool of your liking. This step is important!!! if you make mistake here you'll brick you device! Don't mistype font name. Once you've done this step make mmcblk2p5 folder on your d:\ drive and put all 44 fonts including modified one to that folder. 4. From CMD promt run this command Code:
mkcramfs d:\mmcblk2p5 mmcblk2p5.img 5. Copy your new mmcblk2p5.img to sdcard on PRS T1 (it's READER partition, which is mounted when you connect to PC in data transfer mode) Open Terminal emulator on your read and write the following command Code:
dd if=/mnt/sdcard/mmcblk2p5.img of=/dev/block/mmcblk2p5 bs=1024 Wait for a minute and terminal will signal you how much data it written, now you can restart you're reader. AND no more ugly ????????? in squres!! Disclaimer! This low level operation on system files, potentially you can render your device nonoperational. Do above instruction on your own risk! I'm not responsible for damage you could make to your device. Credits go to Porukan/Boroda, snarkophilus and j0534ng31 they have made this. I'm a compete noob Last edited by giosa; 02-08-2012 at 07:23 AM. |
02-08-2012, 01:11 AM | #2 |
Member
Posts: 12
Karma: 548
Join Date: Feb 2012
Device: PRS T1
|
Thx for your instruction.
One question here. Does sd rescue image have mmcblk2p5 covered in? I wanna to give it a try but just afraid of brick the device and could not fix with sd rescue method. |
Advert | |
|
02-08-2012, 02:37 AM | #3 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Feb 2012
Device: PRS-T1
|
Quote:
I think you must back up the original mmcblk2p5.img Recovery mode may be more powerful. I'm a noob too. |
|
02-08-2012, 03:48 AM | #4 |
2B || !2B
Posts: 852
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Thanks for this,
I'm atm not into fiddling with my T1, but may it be possible to use the mount cmd to test the new compiled cramfs-img before writing it back? Using a command like: Code:
mount -t cramfs -o loop,ro /mnt/sdcard/newfont.img /ebook/fonts/ |
02-08-2012, 07:25 AM | #5 | |
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
Quote:
I agree. Last edited by giosa; 02-08-2012 at 07:28 AM. |
|
Advert | |
|
02-08-2012, 07:29 AM | #6 |
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
Sorry I don't know, maybe more experienced guys will replay.
|
02-09-2012, 04:59 PM | #7 | |
Connoisseur
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
|
Yes, it can be done like this...
But I think you cannot mount it to /ebook/fonts... anyway, you can: 1- Mount the font image to a new directory (for instance, /cache/testfonts) 2- Bind mount it (mount -o bind /cache/testfonts /ebook/fonts) Quote:
1- You'd better do this in 'recovery mode'... 2- Remember to add the 'dd' option that Boroda has told you ('conv=notrunc')... It can be very useful, just in case something goes wrong. Last edited by j0534ng31; 02-09-2012 at 08:14 PM. |
|
02-09-2012, 09:09 PM | #8 |
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
|
02-11-2012, 05:09 AM | #9 |
Zealot
Posts: 109
Karma: 556
Join Date: Nov 2009
Location: SaiGon VietNam
Device: PRS T1, Kobo Forma 8G, Kobo Libra H2O
|
I get this error:
Code:
c:\cygwin\bin>cramfsck -x d:\ /cygdrive/c/mmcblk2p5.img 'cramfsck' is not recognized as an internal or external command, operable program or batch file. |
02-11-2012, 07:15 AM | #10 |
Connoisseur
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
|
I can't remember the exact name, but you have to install the cramfs tools package from cygwin setup
|
02-11-2012, 07:49 PM | #11 | |
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
Quote:
But you still need mkcramfs so you need cygwin Last edited by giosa; 02-11-2012 at 08:03 PM. |
|
02-11-2012, 10:38 PM | #12 | |
Zealot
Posts: 109
Karma: 556
Join Date: Nov 2009
Location: SaiGon VietNam
Device: PRS T1, Kobo Forma 8G, Kobo Libra H2O
|
Quote:
But after re-read carefully the step 3 in your guide, I worry about possibility of bricking my T1 because I have to use also Font Creator, a program that is unfamiliar to me. So, could you please help me bypass this step by providing more info about the img that you made? - Does Droid Georgian font support unicode UTF8? (as I want to display correctly Vietnamese in ToC too). I've googled by found no info about this font; - If yes, could you upload the img in with fonts were replaced so that I can simply go to step 5. Thanks, Last edited by vietchovui; 06-22-2012 at 11:48 AM. |
|
02-12-2012, 05:48 AM | #13 |
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
DroidSans Georgian support unicode but it has only Georgian glyphs, if you have Vietnamese angalog attach to to your message and I'll make img for you.
|
02-12-2012, 08:52 AM | #14 |
Zealot
Posts: 109
Karma: 556
Join Date: Nov 2009
Location: SaiGon VietNam
Device: PRS T1, Kobo Forma 8G, Kobo Libra H2O
|
Attached files are some fonts that support Vietnamese characters (zip file) and a sample of Vietnamese text (file word). Please have a look and help me. Thank you!
If i made any mistake in changing system font files, is there a change to recover the T1 by using SDcard rescue or restore set? Last edited by vietchovui; 02-12-2012 at 08:56 AM. |
02-12-2012, 12:32 PM | #15 | |
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
Quote:
I've made img for you. If you want read in vietnamese from stock reader change original font to ReallyNo2LTW1G. Last edited by giosa; 02-12-2012 at 04:23 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dummies Guide for Idiots on How to Change Epub Fonts | advocate2 | Sony Reader | 16 | 01-26-2012 06:56 PM |
Standard system fonts for Kindle Fire? | sjkramer | Kindle Fire | 11 | 01-23-2012 02:18 PM |
PRS-T1 T1 original system can use customized fonts | bigpizza | Sony Reader | 34 | 12-30-2011 06:58 PM |
PRS-650 Easiest way to change fonts with PRS+ for the PRS 650 | BelgarionNL | Sony Reader | 8 | 07-29-2011 06:16 AM |
PRS-350 Guide for Adding Fonts to PRS-350 | JohnnyRocks | Sony Reader | 7 | 02-28-2011 05:54 PM |