Adjust cell dimensions and font size for better visibility
This commit is contained in:
@@ -58,7 +58,7 @@ class TeletextCanvas(QWidget):
|
|||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self.setMouseTracking(True) # Just in case
|
self.setMouseTracking(True) # Just in case
|
||||||
self.setMinimumSize(480, 500) # 40x12 * 25x20 approx
|
self.setMinimumSize(800, 600) # 40x20 * 25x24
|
||||||
self.page: Page = None
|
self.page: Page = None
|
||||||
self.subset_idx = 0 # Default English
|
self.subset_idx = 0 # Default English
|
||||||
|
|
||||||
@@ -66,8 +66,8 @@ class TeletextCanvas(QWidget):
|
|||||||
# We will render to a fixed size QImage and scale it
|
# We will render to a fixed size QImage and scale it
|
||||||
self.cols = 40
|
self.cols = 40
|
||||||
self.rows = 25
|
self.rows = 25
|
||||||
self.cell_w = 12
|
self.cell_w = 20
|
||||||
self.cell_h = 20
|
self.cell_h = 24
|
||||||
self.img_w = self.cols * self.cell_w
|
self.img_w = self.cols * self.cell_w
|
||||||
self.img_h = self.rows * self.cell_h
|
self.img_h = self.rows * self.cell_h
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ class TeletextCanvas(QWidget):
|
|||||||
self.buffer.fill(Qt.GlobalColor.black)
|
self.buffer.fill(Qt.GlobalColor.black)
|
||||||
|
|
||||||
# Font for text
|
# Font for text
|
||||||
self.font = QFont("Courier New", 14)
|
self.font = QFont("Courier New", 18)
|
||||||
self.font.setStyleHint(QFont.StyleHint.Monospace)
|
self.font.setStyleHint(QFont.StyleHint.Monospace)
|
||||||
self.font.setBold(True)
|
self.font.setBold(True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user