Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Display Chinese, Display Chinese on browsers< Next Oldest | Next Newest >
humpty Offline





Group: Members
Posts: 655
Joined: Sep. 2005
Posted: Mar. 06 2007,12:52 QUOTE

simplest way i know ;

http://petepr.drivehq.com/dsl/tips_fonts.html
Back to top
Profile PM 
xitonghan Offline





Group: Members
Posts: 20
Joined: Mar. 2007
Posted: Mar. 06 2007,17:42 QUOTE

How to add Chinese Fonts


Search 'google' for taipei16.pcf.gz. and download these fonts ( sizes 16,20,24) to .fonts/ directory.
Also create a file called  fonts.dir  to the same directory with the following lines;

3
taipei16.pcf.gz -taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0
taipei20.pcf.gz -taipei-fixed-medium-r-normal--20-200-75-75-c-200-big5-0
taipei24.pcf.gz -taipei-fixed-medium-r-normal--24-240-75-75-c-240-big5-0


Edit .xinitrc and near the top, add this line ;     xset +fp $HOME/.fonts

Reboot.


--------------
a China DSL user on "LENEND Soleil 5200" with MMX166 16+64M RAM 1.44HDD
for Chinese linux lover!
DSL QQ Group:37130075
DSL Chinese web http://linux.1bu8.com
Back to top
Profile PM ICQ MSN 
kissson Offline





Group: Members
Posts: 3
Joined: Oct. 2006
Posted: Jan. 13 2008,15:29 QUOTE

can i use ttf fonts like bkai and bsmi? and how
Back to top
Profile PM 
stupid_idiot Offline





Group: Members
Posts: 344
Joined: Oct. 2006
Posted: Jan. 14 2008,02:29 QUOTE

Hi kissson:
Not related to TTF fonts, but just to let you know, there's a CJK (Chinese Japanese Korean) MyDSL extension already:
http://distro.ibiblio.org/pub....cjk.uci
(You can also download this using the MyDSL Extension Browser. Just click on 'Testing' -> xfonts-cjk.uci)

This package uses plain bitmap fonts (*.pcf / *.pcf.gz), which works under Xvesa.
Unfortunately, bitmap fonts look good only at their native size.
They look rather ugly that sizes larger/smaller than the native size.
TTF fonts look good at all sizes.

Re: TTF fonts
TTF fonts are not supported by Xvesa, so you will need to use a full X11 server -- either XFree86 or Xorg.
You can get the XFree86 extension here:
Xfree86.unc [11M]
(Or: MyDSL Extension Browser -> UNC -> XFree86.unc)
You can get the Xorg extension here:
xorg72.uci [45M]
(Or: MyDSL Extension Browser -> Testing -> xorg72.uci)
Please Beware: The Xorg extension ('xorg72.uci') is still in a 'testing' state; it is VERY BIG (45M) at the moment.
So, I would recommend that you try 'XFree86.unc' [11M] first.

Re: Setting up TTF fonts
Please note that I am not experienced with setting up TTF fonts, so the following information might be incorrect:

1. System-wide font configuration (building lists of fonts, providing lists of fonts to applications) is done by fontconfig. Applications that use fontconfig (e.g. XFree86, Firefox, etc) are linked against the fontconfig library (libfontconfig.so.1). We can rebuild the fontconfig font list (i.e. font cache) by using the provided fontconfig utilities:
-- 'fc-cache' will rebuild the font cache.
-- 'fc-list' will list the available fonts on the system.
So, we need to first install the new TTF fonts and then run 'fc-cache'; then the applications that use fontconfig (e.g. Firefox) will have access to the new TTF fonts.

2. DSL does not have any TTF fonts that come as MyDSL Extensions, so you will need to download TTF fonts from the Net.
Regardless of what TTF fonts you use:
TTF fonts should be placed in any one of the directories that are used by fontconfig.
To see which directories are used by fontconfig, please look at the file '/etc/fonts/fonts.conf', and then look for <dir> tags.
This is the relevant section:
Code Sample
<dir>/usr/share/fonts</dir>
       <dir>/usr/X11R6/lib/X11/fonts/Type1</dir> <dir>/var/lib/defoma/x-ttcidfont-conf.d/dirs</dir>
       <dir>~/.fonts</dir>
This means we can put our TTF fonts under any of the above directories.
Perhaps you might want to use '~/.fonts/' (i.e. '/home/dsl/.fonts/'). Then, you can let DSL backup your fonts and restore them when you reboot.

Anyway, once you have placed the files in any of the above directories, you should run:
Code Sample
fc-cache
This will rebuild the fontconfig cache.

Then, you can start your web browser and go to a Chinese webpage to see if your new fonts work.
If not, maybe you should go to 'Firefox -> Edit -> Preferences -> Fonts & Colors -> [Simplified/Traditional] Chinese' and see if you can manually select your new fonts.

I am not sure whether the above will work.
Please correct me if any of the above is wrong -- thanks everyone.

p.s.
The bitmap font package ('xfonts-cjk.uci') is very easy to setup and install, so if you don't mind the fonts being somewhat uglier than TTF fonts, maybe you might like to try that first.
Thanks!
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Jan. 14 2008,15:42 QUOTE

@stupid_idiot - btw it's possible to compile tinyX with TTF support

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
9 replies since June 08 2006,09:26 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: Display Chinese

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code