From 0c9c5dcad0c7b1b2b75555a7e20f8663bcfa4459 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Sat, 28 Nov 2020 19:30:51 +0100 Subject: [PATCH] workaround to deal with missing default fonts in escpos --- screenless/bureau/publicrelations/publicrelations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/screenless/bureau/publicrelations/publicrelations.py b/screenless/bureau/publicrelations/publicrelations.py index 12f7536..329ea61 100644 --- a/screenless/bureau/publicrelations/publicrelations.py +++ b/screenless/bureau/publicrelations/publicrelations.py @@ -160,7 +160,7 @@ class PublicRelations(Bureau): prn.textln(username) prn.set() twtext = html.unescape(t["full_text"]) - prn.block_text(twtext) + prn.block_text(twtext, font="0") prn.ln() if "media" in t["entities"]: @@ -199,7 +199,7 @@ class PublicRelations(Bureau): prn.textln(username) prn.set() twtext = html.unescape(tweet["full_text"]) - prn.block_text(twtext) + prn.block_text(twtext, font="0") if "media" in tweet["entities"]: for entity in tweet["entities"]["media"]: @@ -312,7 +312,7 @@ class PublicRelations(Bureau): prn.set() ttext = bleach.clean(t.content, tags=[], strip=True) ttext = html.unescape(ttext) - prn.block_text(ttext) + prn.block_text(ttext, font="0") if len(t.media_attachments) > 0: img = None