summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-09-11 13:24:38 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-09-11 13:24:38 +0000
commite8804d0500f6415e9697182c2545516924fcc991 (patch)
treeb096c223c7d7aeb87d791a35d4a82340a87283ec
parentbef2321a83fe3d46eb25dd4e7f1158d4a115bdc6 (diff)
downloaddrakx-e8804d0500f6415e9697182c2545516924fcc991.tar
drakx-e8804d0500f6415e9697182c2545516924fcc991.tar.gz
drakx-e8804d0500f6415e9697182c2545516924fcc991.tar.bz2
drakx-e8804d0500f6415e9697182c2545516924fcc991.tar.xz
drakx-e8804d0500f6415e9697182c2545516924fcc991.zip
inactivate antialias in VGA16 because it makes fonts look worse
-rw-r--r--perl-install/install_gtk.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/perl-install/install_gtk.pm b/perl-install/install_gtk.pm
index a7f1fef5c..b1cf13aeb 100644
--- a/perl-install/install_gtk.pm
+++ b/perl-install/install_gtk.pm
@@ -199,6 +199,18 @@ sub create_logo_window {
#------------------------------------------------------------------------------
sub init_gtk() {
symlink("/tmp/stage2/etc/$_", "/etc/$_") foreach qw(gtk-2.0 pango fonts);
+
+ if (!listlength(cat_('/proc/fb'))) {
+ #- inactivate antialias in VGA16 because it makes fonts look worse
+ output('/tmp/fonts.conf',
+q(<fontconfig>
+<include>/etc/fonts/fonts.conf</include>
+<match target="font"><edit name="antialias"><bool>false</bool></edit></match>
+</fontconfig>
+));
+ $ENV{FONTCONFIG_FILE} = '/tmp/fonts.conf';
+ }
+
Gtk2->init;
Gtk2->set_locale;
}