Archaic wrote:
On Fri, May 19, 2006 at 01:05:59AM -0600, Archaic wrote:
The font configuration section of xorg shows a sed that clobbers
Bitstream Vera fonts. While DejaVu is clearly preferred, do we want to
remove the references to Bitstream?

I've been playing around with sed and came up with this:

sed -i \
  's,\(^\t\t*\)\(<family>Bitstream Vera\)\(.*\),\1<family>DejaVu\3\n\1\2\3,' \
  fonts.conf

which produces a diff like this:

+               <family>DejaVu Serif</family>
                <family>Bitstream Vera Serif</family>

If you really want to have both fonts, please swap them (i.e.: Bitstream should come first, otherwise it would never be used if not explicitly asked for). On the CD, however, the intention is to clobber Bitstream Vera because it is not installed at all.

OTOH, DejaVu contains all characters originally present in Bitstream fonts, and it is a bug if these common characters render differently. So, Bitstream fonts are needed only for broken applications that explicitly ask for them.

Anyway, I found a problem with the sed for Arphic fonts as well (both in
the wiki and in the livecd Makefile). Again, the tab count might be 2 or
3, so I'm using this similar sed::

sed -i 's,\(^\t\t*\)\(<family>Kochi.*\),\1\2\n\1<family>AR PL New 
Sung</family>,'

The intention is to replace only inside <prefer> tags, not in plain <alias> tags, because it is stupid to assign both "monospace" and "serif" aliases for the same font (this would mean: if a character isn't covered by AR PL New Sung, search other serif fonts, oh no, search monospace fonts). But it is OK to use the same font when one asks for Chinese character in a generic "monospace" and "serif" families, because the screen resolution is not sufficient to distinguish. Thus, the replacement happens only in three-tab lines.

As for the "after Kochi" placement, it's a hack. The real intention for the LiveCD is "before any other Chinese fonts".

--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to