View Single Post
Old 03-05-2012, 02:44 AM   #23
xuyn2003
Connoisseur
xuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texan
 
Posts: 71
Karma: 18140
Join Date: Jul 2011
Device: PRS-T1&KOBOTOUCH
Here is another flexible way, I've tested it for several days and met no problems.
Credits to j0534ng31 and uboot
1.Create a file named install-recovery.sh in /system/etc, and put below code in it
Code:
#!/system/bin/sh

mkdir /data/altsd

mount -o noatime,utf8 -t vfat /dev/block/mmcblk2p4 /data/altsd

afd=/data/altsd/altfonts/
fts=`ls $afd`
for ft in $fts
 do
  mount -o bind $afd$ft /ebook/fonts/$ft
done
2.Don't forget to give excution permissions to install-recovery.sh

3.In /mnt/sdcard, create a folder wichi named altfonts, put your fonts in it.
If you want to replace the system UI fonts, rename your fonts to "DroidSans.ttf" and "DroidSans-Bold.ttf".
Or you'd like to replace other fonts, please refer to the original file name in /ebook/fonts, and make your fonts names as same.
ps:The default fonts for txt files is ReallyNo2LTW1G-Regular.otf

4.reboot T1
xuyn2003 is offline   Reply With Quote