diff options
author | Erik Troan <ewt@redhat.com> | 2000-05-05 19:35:14 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-05-05 19:35:14 +0000 |
commit | 2ef75c5a9998f6b0473b917f653fcc4568494893 (patch) | |
tree | 66bb15edaf64951a39d33410574a298959ffbe8a | |
parent | 138221823691d2b6e7dcfc14148341e93af1cd65 (diff) | |
download | anaconda-2ef75c5a9998f6b0473b917f653fcc4568494893.tar.gz anaconda-2ef75c5a9998f6b0473b917f653fcc4568494893.tar.xz anaconda-2ef75c5a9998f6b0473b917f653fcc4568494893.zip |
load fonts in reconfig and test
-rw-r--r-- | text.py | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -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), |