LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-17-2007, 09:15 AM   #1
suchasplus
LQ Newbie
 
Registered: Jan 2007
Location: China,Beijing
Distribution: slackware, ubuntu, rhel
Posts: 8

Rep: Reputation: 0
Why Slackware 10.2 didn't have chinese fonts?


Maybe I'm a newbie,I have some simple questions.

Why Slackware 10.2 didn't have chinese fonts?
I use FULL INSTALLTION mode to install it.
And , where can i find the chinese font?
Can Truetype fonts in windows xp used in slackware ?
how can i install the chinese fonts?
by the way, did slackware 11.0 have chinese fonts?

Thanks


by suchasplus@gmail.com
 
Old 01-17-2007, 12:50 PM   #2
diskoe
Member
 
Registered: Nov 2006
Posts: 36

Rep: Reputation: 15
I had the same question. Slack had the kdei support for international font display for KDE, but no true type fonts. I've got some instructions on how to do this, but my notes for it is at home, on my Slack box. I'm at work now. When I get home, I'll post my instructions.

It had always puzzled me that Pat would include KDEI packages, but no true type fonts or X11 fonts.

SuSE and Fedora have them. (But that's no reason to use those distros)

By the way, do you need Traditional or Simplified Chinese fonts?

Last edited by diskoe; 01-17-2007 at 12:53 PM.
 
Old 01-17-2007, 01:52 PM   #3
suchasplus
LQ Newbie
 
Registered: Jan 2007
Location: China,Beijing
Distribution: slackware, ubuntu, rhel
Posts: 8

Original Poster
Rep: Reputation: 0
Unfortunately, I need to communicate others with chinese.
Thanks to google, I got WQY fonts to display Simplified chinese.
But in china mainland, access sf.net may forbidden by government.
I need to use Tor to access WQY's website.
WQY's website: http://wqy.sourceforge.net
 
Old 01-17-2007, 07:33 PM   #4
diskoe
Member
 
Registered: Nov 2006
Posts: 36

Rep: Reputation: 15
Here's what I have from my notes. I hope this helps. It is how I installed true type fonts for Chinese (BIG5 and GB) encodings.

Problem: Can not display any BIG5 characters with Firefox.

Fix:
The system needs BIG5 True Type fonts.

SITE : http://www.usinglinux.org/chinese/
REFERENCED TO : ftp://freebsd.sinica.edu.tw/pub/keith/
DOWNLOAD : zh-arphicttf-2.11.tar.gz
Extracted the 4 ttf files to /usr/X11R6/lib/X11/fonts/CHTTF

SITE: http://brendan.sdf-eu.org/articles/a...sing_slack.php

# mkfontscale /usr/X11R6/lib/X11/fonts/CHTTF
# mkfontdir /usr/X11R6/lib/X11/fonts/CHTTF
# mkfontdir -e /usr/X11R6/lib/X11/fonts/encodings (didn't seem to do anything)
# fc-cache /usr/X11R6/lib/X11/fonts/CHTTF

FILE : /etc/fonts/fonts.conf
ADD : <dir>/usr/X11R6/lib/X11/fonts/CHTTF</dir>
to the obvious section. Or create local.conf and put the entry there.

FILE : /etc/X11/xorg.conf
ADD : FontPath "/usr/X11R6/lib/X11/fonts/CHTTF"

Restart Xorg.

(by the way, I did this on my Slack 11 box, but I'm sure it will work on 10.2)

Last edited by diskoe; 01-17-2007 at 07:42 PM.
 
Old 01-17-2007, 07:46 PM   #5
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 110Reputation: 110
The Japanese on Slack project may help for chinese as well.
 
Old 01-18-2007, 02:03 AM   #6
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,569

Rep: Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394
Quote:
Originally Posted by suchasplus
Can Truetype fonts in windows xp used in slackware ?
Yes they can! Just copy them from your Windows box to your Slackware box and install them.

Quote:
how can i install the chinese fonts?
Open the first link in my sig and do a text search for "Installing More Fonts."

I predict that copying the fonts over from your Windows partition will solve the problem.

Last edited by dugan; 01-18-2007 at 02:43 AM.
 
Old 01-18-2007, 04:59 AM   #7
suchasplus
LQ Newbie
 
Registered: Jan 2007
Location: China,Beijing
Distribution: slackware, ubuntu, rhel
Posts: 8

Original Poster
Rep: Reputation: 0
Talking

Quote:
Originally Posted by dugan
Yes they can! Just copy them from your Windows box to your Slackware box and install them.



Open the first link in my sig and do a text search for "Installing More Fonts."

I predict that copying the fonts over from your Windows partition will solve the problem.
Doesn't windows' truetype fonts have copyrights?

Thanks to diskoe, the method I used to install WQY fonts in slackware 10.2 is like yours~.
 
Old 01-18-2007, 05:01 AM   #8
suchasplus
LQ Newbie
 
Registered: Jan 2007
Location: China,Beijing
Distribution: slackware, ubuntu, rhel
Posts: 8

Original Poster
Rep: Reputation: 0
This is WQY fonts install manual

Quote:
$Id: FirstEmperor_INSTALL 0.8 Rev. 1 2006/12/18 20:29:16 qianqianfang Exp$

==========================================================

Wen Quan Yi Bitmap Song CJK Fonts

Installation Guide

----------------------------------------------------------

The WenQuanYi Bitmap Song font (medium and bold weight) was
packaged into three equivalent formats: BDF (Bitmap Distribution
Format), PCF (Portable Compiled Format) and TTF(True-type).
All formats are supported by most modern X-window systems
(TTF format requires FreeType 2.x or later). You can choose
any of them based on your preference.


Important:

Debian (or its variants) disables pure bitmap fonts by default.
In order to use this font, you need to execute the following two
commands after installation:

cd /etc/fonts/conf.d/
sudo unlink 30-debconf-no-bitmaps.conf

== PCF/BDF Package Installation ==

1. download

You can find the installation package from
our sourceforge download site at

http://sourceforge.net/project/showf...kage_id=156288

choose the latest release and select your preferred
font format, save the installation file to a temporary
directory, for example /tmp.

2. decompression

The package is usually a gz-ed tarball, to extract the files

tar zxvf wqy-bitmapfont*.tar.gz

or

gunzip wqy-bitmapfont*.tar.gz
tar xvf wqy-bitmapfont*.tar


3. move directory (optional)

You can find all extracted file under a subdirectory
called "wqy-bitmapfont". You might want to move this
directory to the location where you want
to install the font, a good place is

/usr/share/fonts/wenquanyi/wqy-bitmapfont

To move the directory, you need to use "su" or "sudo" to obtain
root privileges. (If you don't have root privileges, please
refer to Section 6)

4. font path setup

Now you need to tell X-window where to find the installed font.
There are two major font management mechanisms: X-core font
and fontconfig. We will discuss the installation for
X-core font first.

Assuming you have installed the font to
/usr/share/fonts/wenquanyi/wqy-bitmapfont/

execute the follow commands

su
cd /usr/share/fonts/wenquanyi/wqy-bitmapfont/
rm fonts.dir fonts.scale fc-cache.*
mkfontdir .
cp fonts.dir fonts.scale
xset +fp /usr/share/fonts/wenquanyi/wqy-bitmapfont/

the last command adds the font path to the font path
list of current X-window session. To permanently add this path,
you need to add

FontPath "/usr/share/fonts/wenquanyi/wqy-bitmapfont/"

to /etc/X11/xorg.conf, under any line starting with "FontPath",
for example:

FontPath "unix/:7100"

if your system does not have xorg.conf, you are probabily
running XFree86, then you should do the same thing for
/etc/X11/XF86Config-4

If you see "unix/:7100" in your xorg.conf, your X window
is using "xfs". Typing the path to the font in /etc/X11/fs/config
under the line "catalogue =/usr/lib/X11/fonts/misc/,"
can do the same thing as you modify xorg.conf.

Now you have done with X Core font set up. Most recent
versions of Linux X programs support Xft/fontconfig, which
is a set of font search/selection rules. To make fontconfig
aware of the newly installed WenQuanYi bitmap font, you need to
insert the following line

<dir>/usr/share/fonts/wenquanyi/wqy-bitmapfont/</dir>

to /etc/fonts/fonts.conf or ~/.fonts.conf, however, if you
installed the font into a subdirectory under /usr/share/fonts/,
this is not required.

we provided a fontconfig file specifically optimized for wqy bitmap fonts,
named "85-wqy-bitmapsong.conf". To activate the optimized settings, you
need to install this file as well. If /etc/fonts/conf/ directory exists
in your system, please directly move this file to that directory. If it does
not exist, you need to add the following line to the
end of /etc/fonts/fonts.conf (before </fontconfig>)

<include>/usr/share/fonts/wenquanyi/wqy-bitmapfont/85-wqy-bitmapsong.conf</include>

if you are using the latest fontconfig-2.4.x, you can also move this file
to ~/.fontconfig/ directory, it will also do the job.

After all of above steps, type "fc-cache -f -v" to update fontconfig,
In most cases, you need to restart your X-window in order to activate
all the settings.


5. test

To test if the font is successfully installed, the following
command

/usr/X11R6/bin/xlsfonts | grep 'wenquanyi'


would print something like followings (you may also see font names for gb2312/big5 etc)

-wenquanyi-wenquanyi bitmap song-bold-r-normal--0-0-75-75-p-0-iso10646-1
-wenquanyi-wenquanyi bitmap song-bold-r-normal--12-120-75-75-p-119-iso10646-1
-wenquanyi-wenquanyi bitmap song-bold-r-normal--13-130-75-75-p-80-iso10646-1
-wenquanyi-wenquanyi bitmap song-bold-r-normal--15-150-75-75-p-80-iso10646-1
-wenquanyi-wenquanyi bitmap song-bold-r-normal--16-160-75-75-p-80-iso10646-1
-wenquanyi-wenquanyi bitmap song-medium-r-normal--0-0-75-75-p-0-iso10646-1
-wenquanyi-wenquanyi bitmap song-medium-r-normal--12-120-75-75-p-119-iso10646-1
-wenquanyi-wenquanyi bitmap song-medium-r-normal--13-130-75-75-p-80-iso10646-1
-wenquanyi-wenquanyi bitmap song-medium-r-normal--15-150-75-75-p-80-iso10646-1
-wenquanyi-wenquanyi bitmap song-medium-r-normal--16-160-75-75-p-80-iso10646-1
....

for fontconfig, you need

fc-list | grep 'WenQuanYi'

you would expect to see the following two lines as output

WenQuanYi Bitmap Song:style=Bold
WenQuanYi Bitmap Song:style=Regular

With KDE or GNOME font selection tools, you should be able to see
"WenQuanYi Bitmap Song" in the font name list.


6. installation as a normal user

If you do not have root privilege, for example, you are using
public machines, to install this font is also very simple.
If you are using KDE, find "Control Center" from the K-menu
(or type kcontrol from console), choose "System Administration"
and click on "Font Installer", right click on the middle panel,
choose "add font", locate the extracted fonts (bdf/pcf) files.

If you are using Gnome environment, double click on "Computer",
type "fonts:/" on the address bar, and type enter. Open another
file browser and select the bdf/pcf.gz font files, drag or
copy/paste to the fonts:/ folder.

If you do not have X-window started, you can also install the
font by extracting the BDF/PCF files to ~/.fonts/ directory
(if it does not exist, create one after making sure you have
fontconfig installed).

You may also add the following line to ~/.fonts.conf to use
pre-set configurations

<dir>/path/to/wqy-bitmapfonts/</dir>
<include>/path/to/85-wqy-bitmapsong.conf</include>

7. Turn on Chinese language support on your system

To correctly display Chinese, your system should
support Chinese language. You need to install the related
packages (for example, sudo apt-get install kde-i18n-Chinese*)
Then put the following line

LC_CTYPE=zh_CN.UTF-8

into ~/.i18n and reboot your system (this file may not exist, in
that case, you need to create it first by "touch ~/.i18n".
you can also use other locales in the output of
"ls -d /usr/lib/locale/zh_*"). To enable command line Chinese
message, replace "LC_CTYPE" by "LC_ALL". If you want all menu displayed
with Chinese language, on KDE, goto "Control center", click on "Region and
Assistance", find "Country/Region and Language", choose "Chinese" from
"Add language"; if you are using Gnome, you need to select "Preference"
and "Language", then add "Chinese". Restart your X or system
if necessary to enable this setting. If you can not select "Chinese" for
either desktop environments, you need to install the corresponding
language package first.


== TTF Package Installation ==

To install TTF version of Wenquanyi bitmap font is a little bit tricky.
The font file is a special type of TTF, called SFNT (or sbit only) TTF.
This format is supported by FreeType 2.x or later. Unfortunately,
ttfmkdir and fc-cache can not recognize this format. So, we packaged
hand-writen configuration files, fonts.dir/fonts.scale/fonts.cache-1,
in the release.

The installation process is very similar to PCF/BDF version, you can
type ttmkfdir and fc-cache -fv, in that case, the hand-writen config
files will be overwriten. You can find a font.config.tar.gz in the
installation file, you need to decompress this file and restore
the correct fonts.* files. In the future, anytime you submit
fc-cache -fv, you need to repeat the above process.

== RPM Package Installation ==

if your system support RPM, to use RPM package is the simplest.
you simply type

sudo rpm -Uvh wqy-bitmapfont*noarch.rpm

then after restarting your X-window, you should be able
to use this font.

== Other issues ==

For some old applications, such as Emacs, XMMS, you may need to
do some extra configurations, you can search our FAQ page for
more details

http://wqy.sourceforge.net/cgi-bin/index.cgi?FAQ


==========================================================
$Id: FirstEmperor_INSTALL 0.8 Rev. 1 2006/12/18 20:29:16 qianqianfang Exp$
 
Old 01-19-2007, 12:05 PM   #9
cowyn
Member
 
Registered: Oct 2006
Location: Hangzhou, China
Distribution: Slackware
Posts: 49

Rep: Reputation: 15
this is the slackware style and location,u can just copy some chinese fonts from Windows.
give u a useful site,http://www.linuxsir.org/bbs/forumdisplay.php?f=73,there u can find the answers.
I'm in beijing too

Last edited by cowyn; 01-19-2007 at 12:09 PM.
 
Old 02-12-2007, 05:02 AM   #10
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Rep: Reputation: 52
Quote:
Originally Posted by tuxdev
The Japanese on Slack project may help for chinese as well.
Noted with tks.

satimis
 
Old 02-12-2007, 06:03 AM   #11
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
Quote:
Originally Posted by suchasplus
Doesn't windows' truetype fonts have copyrights?
Yes, so if you have a legitimate copy of Windows, then there is no problem, since you already have a license to use the fonts.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
installing chinese fonts linuxmandrake Fedora 2 08-06-2005 04:12 PM
how-to install chinese fonts hunter_one Linux - Newbie 6 02-24-2005 04:22 PM
chinese fonts and input problem nived Linux - Software 3 09-13-2004 07:44 AM
install chinese fonts on mozilla irvken Linux - Software 7 06-06-2004 05:35 PM
Chinese Pinyin Fonts Maurice Arthur Linux - Software 0 02-01-2002 12:40 PM


All times are GMT -5. The time now is 05:57 AM.

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