Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 2009 19:11:27 -0500 (CDT)
From:      Lars Eighner <luvbeastie@larseighner.com>
To:        Yuri <yuri@rawbw.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: What is the best XServer font configuration to use with international fonts (Cyrillic/Chinese/Korean)
Message-ID:  <20090322191121.L74464@qroenaqrq.6qbyyneqvnyhc.pbz>
In-Reply-To: <49C6CC4A.9080209@rawbw.com>
References:  <49C6C225.9010104@rawbw.com> <20090322182155.X74315@qroenaqrq.6qbyyneqvnyhc.pbz> <49C6CC4A.9080209@rawbw.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sun, 22 Mar 2009, Yuri wrote:

> Lars Eighner wrote:
>> On Sun, 22 Mar 2009, Yuri wrote:
>> 
>>> I use the following font section:
>>> Section "Files"
>>>   FontPath   "/usr/local/lib/X11/fonts/misc/"
>>>   FontPath   "/usr/local/lib/X11/fonts/TrueType/"
>>> EndSection
>>> 
>>> What is the best font configuration to use to show all those languages 
>>> nicely?
>> 
>> The place to deal with these issues is in your windows manager, or in
>> some cases, the configuration of individual applications.  I do not know
>> if there really is a single best solution to your problem, but only that
>> the solution is not in the X configuration.
>> 
>
> Lars,
>
> I don't know understand why xorg.conf isn't the place. If there are no fonts 
> for some language they should be installed and corresponding lines placed into 
> xorg.conf.

That's right.  But I see you did not install the cyrillic fonts.

Install the port x11-fonts/xorg-fonts-cyrillic from the ports collect.
The port should add the font path to your x configuration file if it in the
normal place.  If it doesn't, you can add the path manually after you verify
that the port did install and the fonts are in the appropriate directory.

> Some fonts may be defective. So they shouldn't be put there.
> So xorg.conf has to do with the problem.

The directories in the path in the x configuration file are collections of
fonts.  You cannot delete individual fonts from the x configuration file.

> I specifically have an issue with the font calls "sans-serif" that FF uses
> to show Cyrillic texts.

Then change the defaults in FF preferences.  Choose Preferences from the
Edit menu, then Content.  Go to the Advanced menu from Fonts & Colors.

Use the drop-down menu to change Fonts for: Western to Fonts for: Cyrillic.
Select fonts for each of the generic families:  Proportional, Serif, etc.
Uncheck the box for Allow pages to choose their own font (unless you are
willing to allow authors to choose fonts you do not like).  Click OK and
close the Preferences menu.

> It must have come from FontPath in XServer.

Yes, but mangling the x configuration is not the way to deal with it.  If FF
cannot find the font it thinks should be the default, there is no guarantee
that FF's second choice will be any more pleasing (and it could be a great
deal worse  --- second choice might be refusing to display at all or using
a Western font with many missing characters).

-- 
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20090322191121.L74464>