summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-05 19:35:14 +0000
committerErik Troan <ewt@redhat.com>2000-05-05 19:35:14 +0000
commit2ef75c5a9998f6b0473b917f653fcc4568494893 (patch)
tree66bb15edaf64951a39d33410574a298959ffbe8a
parent138221823691d2b6e7dcfc14148341e93af1cd65 (diff)
downloadanaconda-2ef75c5a9998f6b0473b917f653fcc4568494893.tar.gz
anaconda-2ef75c5a9998f6b0473b917f653fcc4568494893.tar.xz
anaconda-2ef75c5a9998f6b0473b917f653fcc4568494893.zip
load fonts in reconfig and test
-rw-r--r--text.py21
1 files changed, 15 insertions, 6 deletions
diff --git a/text.py b/text.py
index 7f6d6e0b1..5b453f6e4 100644
--- a/text.py
+++ b/text.py
@@ -74,12 +74,21 @@ class LanguageWindow:
cat.setlangs (newlangs)
todo.language.set (choice)
if not todo.serial:
+ map = todo.language.getFontMap(choice)
font = todo.language.getFontFile(choice)
- if font != "None":
- try:
- isys.loadFont(font)
- except SystemError, (errno, msg):
- log("Could not load font %s: %s" % (font, msg))
+ if map != "None":
+ if os.access("/bin/consolechars", os.X_OK):
+ iutil.execWithRedirect ("/bin/consolechars",
+ ["/bin/consolechars", "-f", font, "-m", map])
+ else:
+ try:
+ isys.loadFont(map)
+ except SystemError, (errno, msg):
+ log("Could not load font %s: %s" % (font, msg))
+ elif os.access("/bin/consolechars", os.X_OK):
+ # test and reconfig
+ iutil.execWithRedirect ("/bin/consolechars",
+ ["/bin/consolechars", "-d", "-m", "iso01"])
textInterface.drawFrame()
@@ -863,7 +872,7 @@ class InstallInterface:
[N_("Welcome"), ReconfigWelcomeWindow,
(self.screen,), "reconfig" ],
[N_("Language Selection"), LanguageWindow,
- (self.screen, todo), "language" ],
+ (self.screen, todo, self), "language" ],
[N_("Keyboard Selection"), KeyboardWindow,
(self.screen, todo), "keyboard" ],
[N_("Hostname Setup"), HostnameWindow, (self.screen, todo),