LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-04-2006, 07:27 PM   #1
mattie_linux
LQ Newbie
 
Registered: May 2005
Posts: 15

Rep: Reputation: 0
installing Chinese fonts (rpm?) in RedHat Enterprise Workstation 4 update 1 x86


Hello there,

(I apologize for any English mistakes.)

Though Firefox seems to correctly detect the right
encoding, I am getting a strange characters in place
of (Chinese) text on the Chinese sites I visit.

I think I am just missing the Chinese fonts rpm. Is
"taipeifonts-1.2-26.noarch.rpm" my only option? When I
"ls" all the RPM's in the distro, and grep for "-i
chinese," the only things that come up are:

- kde-i18n-Chinese-3.3.1-2.1.noarch.rpm
- kde-i18n-Chinese-Big5-3.3.1-2.1.noarch.rpm
( Which would be seemingly be KDE related?)

I did install "taipeifonts-1.2-26.noarch.rpm" (from
the Redhat media), but I'm still not getting Chinese
pages to look right. Did I choose the wrong font
package, or maybe I have the wrong approach
altogether?

thanks,
Mats
 
Old 01-04-2006, 11:43 PM   #2
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 725

Rep: Reputation: 33
I am learning Chinese, so I don't know how chinese user deal with the fonts problem.
But my computer display chinese character correctly using Unicode fonts.
It may help if you are using the unicode encoding.
Those unicode fonts can be found inside windows, copy these six fonts:
Code:
Times New Roman
Tahoma
Arial Unicode MS
Verdana
Palatino Linotype
I am not sure whether those fonts can be copy freely.
But if M$ hold its copyright, they must have something done to prevent we copy it.

So, you can try it if you want.
 
Old 01-10-2006, 06:25 AM   #3
ztdep
Member
 
Registered: Jul 2005
Posts: 196

Rep: Reputation: 31
hi , copy those fonts to whick location
 
Old 01-10-2006, 07:16 AM   #4
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
There are many choices, Arphic release some fonts under APL for free, most distro use them as default Chinese fonts, but their display effect is inferior to MingLiu -- the default font in Traditinal Chinese Windows system, due to lack of embeded bitmap font, but using MingLiu might have copy right violation. Recently, Taiwan hacker Firefly made a good free font, partly based on Arphic fonts, but have bitmap font embeded, and this part is made by Firefly from scratch. You can get them at:

http://cle.linux.org.tw/fonts/FireFly/

As for fonts installation, rpm is not the only way, you can just copy the ttf file to a directory listed in the /etc/fonts.conf.

grep \<dir\> /etc/fonts.conf

to check the correct path.

then run fc-cache -fv to update the fonts cache, optionally restart the X session.

Note, the above procedure is for the fontconfig font subsystem, which gtk2 and qt use. Linux have two font subsystems, another is the core X font system, classic application such ass xmms (gtk1), many window manager, etc, use it. To ensure the core X font system can use those newly installed truetype fonts, you should first load the freetype module in X config file, /etc/X11/XFree86.conf for xfree86, /etc/X11/xorg.conf for xorg, check if the following line exists in above files:

Code:
  Load        "freetype"
then add the directory path in which those fonts exist in to the X config file, for example, you copy the ttf file to /usr/share/fonts/, then add

Code:
FontPath        "/usr/share/fonts"
to the X config file, then cd into the fonts directory, run

Code:
mkfontscale && cp fonts.scale fonts.dir
restart X.

But there is a problem, mkfontscale comes with xorg seems can't recognize Chinese fonts encoding properly, thus generates wrong useless fonts.dir and fonts.scale, which don't contain valid XLFD (X Logical Font Descriptions) for Chinese fonts. I test it for MingLiu and SimSun, it cannot generate BIG5 XLFD for MingLiu and GBK XLFD for SimSun.

Some useful commands to check if font is properly installed:

fc-list : list available fonts for the fontconfig system
xlsfonts : list available fonts for the core X font system

Last edited by T.Hsu; 01-10-2006 at 07:22 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i need help installing VMware-workstation-5.0.0-13124.i386.rpm please! abcstorz Linux - Software 11 08-08-2007 05:30 AM
installing chinese fonts linuxmandrake Fedora 2 08-06-2005 04:12 PM
redhat enterprise workstation qerf Linux - Software 1 07-10-2005 01:54 AM
RedHat Enterprise. How to go from V3 Update 1 to V3 Update 3? vectorz2 Linux - Software 3 05-07-2005 02:50 AM
Mouse Gone Nuts In RedHat Enterprise Workstation Farquar210 Red Hat 1 08-17-2004 02:10 PM


All times are GMT -5. The time now is 08:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration