PDA

View Full Version : problems vietnamese font


kimhuynh56
2008-01-18, 01:06
i copy ariialuni.ttf to mmc1 then open xtem press sudo gainroot
cp /media/mmc1/arialuni.ttf /home/user/.fonts
fc-cache -f -v
screen display /usr/share/fonts: caching, 12 fonts, 1 dirs
/usr/share/fonts/nokia: caching, 5 fonts, 0 dirs
/home/user/.fonts: "/home/user/.fonts": not a directory, skipping
/usr/var/cache/fontconfig: not cleaning unwritable cache directory
/home/user/.fontconfig: cleaning cache directory
fc-cache: succeeded
~ $
what's i did wrong I spend 1 week still cannot make vietnamese font work on n800I I like to read vnexpress.net and tuoitre.com.vn
please help my email hkpvth@gmail.com

:eek:

baksiidaa
2008-01-18, 06:15
Here's your problem:
cp /media/mmc1/arialuni.ttf /home/user/.fonts
needs to have a backslash on the end, i.e.,
cp /media/mmc1/arialuni.ttf /home/user/.fonts/
otherwise you're just copying the file to /home/user/ and renaming it .fonts--that's why it's saying .fonts is not a directory.

Hope that helps!

kimhuynh56
2008-01-18, 20:32
thx for your help butt i try it still not work I open for help here what i did
~ $ cp /media/mmc1/arialuni.ttf /home/user/fonts/
cp: cannot stat '/home/user/fonts/': Not a directory
~ $ cp /media/mmc1/arialuni.ttf /home/user/.fonts/
cp: cannot stat '/home/user/.fonts/': Not a directory
~ $ fc-cache -f -v
/usr/share/fonts: caching, 12 fonts, 1 dirs
/usr/share/fonts/nokia: caching, 5 fonts, 0 dirs
/home/user/.fonts: "/home/user/.fonts": not a directory, skipping
/usr/var/cache/fontconfig: not cleaning unwritable cache directory
/home/user/.fontconfig: cleaning cache directory
fc-cache: succeeded
I have os 2008 new version

coffeedrinker
2008-01-18, 20:58
First create the directory
mkdir /home/user/.fonts

Then copy the fonts to it
cp /media/mmc1/arialuni.ttf /home/user/.fonts/

Then, since you are doing all this as root, you need to change the permissions
chown -R user:users /home/user/.fonts/

nhanquy
2008-01-18, 23:37
/home/user/.fonts: "/home/user/.fonts": not a directory, skipping


It means that you have somehow overwritten the font file to the file named /home/user/.fonts !!!!


You should do this:
==============================================
sudo gainroot
rm -rf /home/user/.fonts
exit
mkdir /home/user/.fonts
cp /media/mmc1/arialuni.ttf /home/user/.fonts
===============================================

the first 3 commands allow you to erase the file /home/user/.fonts
the last 2 commands create the directory named /home/user/.fonts and put the unicode font file in it !

The last unix command means "copy the file /media/mmc1/arialuni.ttf
to /home/user/.fonts if /home/user/.fonts is a directory then copy under it otherwhile the file has a new name /home/user/.fonts"

Therefore for most people in order to avoid mistake, they would type:
cp /media/mmc1/arialuni.ttf /home/user/.fonts/
just to make sure /home/user/.fonts has to be a directory.

kimhuynh56
2008-01-19, 01:28
thx all of you to help me load vietnamese font it work now i wand to share with every one why i have problems
1 I did not have/
2 some how I cannot copy arialuni.ttf /home/user/.fonts so nhanquy righ I need to remove rm -rf /home/user/fonts/ then exit etem
3 make new dir mkdir /home/user/fonts//
4 copy font arialuni.ttf to home/user/.fonts
5 change owner user fonts
6 exit
close etem and start vietnamese web
again thx alot your guy help
KH

coffeedrinker
2008-01-19, 02:07
So glad you got it working!