summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>2000-06-04 22:17:20 +0000
committerPablo Saratxaga <pablo@mandriva.com>2000-06-04 22:17:20 +0000
commita8713247655b192731b01795997f1b2155a4a5fa (patch)
treeb98f94989a3010ec8c9a72e333bdfc8e90cbe9bf /perl-install/lang.pm
parent608910287aa9c207da533a83d20fd8d6cc085823 (diff)
downloaddrakx-backup-do-not-use-a8713247655b192731b01795997f1b2155a4a5fa.tar
drakx-backup-do-not-use-a8713247655b192731b01795997f1b2155a4a5fa.tar.gz
drakx-backup-do-not-use-a8713247655b192731b01795997f1b2155a4a5fa.tar.bz2
drakx-backup-do-not-use-a8713247655b192731b01795997f1b2155a4a5fa.tar.xz
drakx-backup-do-not-use-a8713247655b192731b01795997f1b2155a4a5fa.zip
added a function to change console font
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm16
1 files changed, 16 insertions, 0 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index b7bb11d4d..0638f2840 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -334,6 +334,22 @@ sub load_po($) {
}
+sub load_console_font {
+ my ($lang) = @_;
+ my ($charset) = $languages{$lang}[1] ;
+ my $f = "-f lat0-sun16";
+
+ if (my $c = $charsets{$charset}) {
+ if ($c->[0]) { $f = "-f " . $c->[0] ; }
+ if ($c->[1]) { $f = $f . " -u " . $c->[1] ; }
+ if ($c->[2]) { $f = $f . " -m " . $c->[2] ; }
+ }
+
+ log::l("loading console font: consolechars $f");
+ system("consolechars $f");
+
+}
+
#-sub load_font {
#- my ($charset) = @_;
#- my $fontFile = "lat0-sun16";