LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-11-2007, 09:10 PM   #1
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Rep: Reputation: 30
Again.Chinese Font display in list box


Hi,everyone.It's me,again.. I have some problems of displaying chinese fonts in list box.

I did successfully switch my OS entirely to Linux except some printing task.One of the problem I am facing is that the chinese font displayed in list box is ugly and awful!

Except the font is ugly in list box,everything is fine.

Do you guys have any experience of that?Please drop me a line if you have any solution.Thanks.
 
Old 05-13-2007, 07:07 AM   #2
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 306

Rep: Reputation: 47
What list box do you mean? any screenshot please?
 
Old 05-15-2007, 07:36 AM   #3
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Original Poster
Rep: Reputation: 30
kite,thanks for your reply.

The list box which you can see in a website.Kinda like a drop down menu,maybe in fact it is.. The chinese font in the menu looks awful.I'm sorry to tell you I couldn't give you a screenshot because I have tried many methods to capture fullscreen with the selection of drop down menu,but failed.

Grateful for your help.
 
Old 05-15-2007, 08:19 AM   #4
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Does it happen in every browser you use?
 
Old 05-17-2007, 08:59 PM   #5
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Original Poster
Rep: Reputation: 30
Yes,it happened on my Firefox,Seamonkey and other.
 
Old 05-18-2007, 04:33 AM   #6
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 306

Rep: Reputation: 47
I do not have the problem here. I am not sure whether it is a font configuration problem. But here I use a customized /etc/fonts/local.conf as following for better Chinese font display (antialising for chinese fonts are off and I use Simsun font):

Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>

 <match target="font">
                <edit name="autohint">
                        <bool>true</bool>
                </edit>
                <edit name="hintstyle">
                        <const>hintfull</const>
                </edit>
                <edit name="antialias">
                        <bool>true</bool>
                </edit>
        </match>

<match target="font">
                <test target="pattern" name="lang" compare="contains">
                        <string>zh</string>
                        <string>ja</string>
                        <string>ko</string>
                </test>
                <edit name="spacing">
                        <const>proportional</const>
                </edit>
                <edit name="globaladvance">
                		<bool>false</bool>
                </edit>
        </match>

<match target="pattern">
		<test name="family">
			<string>SimSun</string>
			<string>SimSun-18030</string>
			<string>AR PL ShanHeiSun Uni</string>
			<string>AR PL New Sung</string>
			<string>MingLiU</string>
		</test>
		<edit binding="strong" mode="prepend" name="family">
			<string>Tahoma</string>
			<string>Arial</string>
			<string>Verdana</string>
			<string>DejaVu Sans</string>
			<string>Bitstream Vera Sans</string>
		</edit>
	</match>


<match target="font">
                <test name="family">
                        <string>MingLiU</string>
                        <string>PMingLiU</string>
                </test>
                <edit name="autohint">
                        <bool>false</bool>
                </edit>
                <edit name="hinting">
                        <bool>true</bool>
                </edit>
        </match>


<match target="font">
<test name="family" compare="contains">
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
<string>SimSun</string>
<string>宋体</string>
</test>
<edit name="globaladvance">
<bool>false</bool>
</edit>
<edit name="spacing">
<int>0</int>
</edit>
<edit name="hinting">
<bool>true</bool>
</edit>
<edit name="autohint">
<bool>false</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<test name="pixelsize" compare="less_eq" qual="any">
<int>18</int>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
<test name="pixelsize" compare="more_eq">
<int>8</int>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
</match>

</fontconfig>
 
Old 05-18-2007, 04:40 AM   #7
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 306

Rep: Reputation: 47
use gimp to capture the screenshot, set the delay in second before capturing.
 
Old 05-18-2007, 06:20 AM   #8
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Original Poster
Rep: Reputation: 30
kite,I did that before.But it didn't work.

Yeah,i will also try your conf file to see whether it will work.
 
  


Reply



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
Got nice font (Chinese) on fluxbox,but the list box's text is awful! Swift&Smart Slackware 3 08-17-2006 10:57 PM
chinese font support lik Linux From Scratch 3 12-06-2005 12:48 PM
Chinese font display problem Jiawen Linux - General 1 12-02-2005 02:53 AM
beep-media-player internationalization problem (font in display list) septanla Ubuntu 0 05-10-2005 07:41 AM
Help needed for chinese font display abd Linux - General 0 11-07-2003 09:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:58 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration