From 7d02e224058e855cd159fea38acfdba522874734 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 13 May 2013 08:10:49 +0200 Subject: add font loading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/parse.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/parse.py b/src/parse.py index 698bde9..a0036cf 100755 --- a/src/parse.py +++ b/src/parse.py @@ -18,6 +18,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +import os + timeout = 0 title = '' @@ -155,7 +157,9 @@ for seg in more: text += '\n' * (seg[0] - line) + seg[1] + '\n' line = seg[0] + len(seg[1].split('\n')) -text = background + '\n' + font + '\n' + '\n'.join((text + '\n' * 30).split('\n')[:30]) +text = background + '\n' + '\n'.join((text + '\n' * 30).split('\n')[:30]) print(text.replace('\033', ''), end = '') +os.system('bash -c "psf2txt <(gunzip < \'%s\') /dev/stderr 2>&1 >/dev/null | grep -v ++"' % font.replace('\'', '\'\\\'\'')) + -- cgit v1.2.3-70-g09d2