From a6f372be918a21991da050380896bbd45242c2c1 Mon Sep 17 00:00:00 2001 From: gryf Date: Wed, 13 Apr 2022 17:10:18 +0200 Subject: [PATCH] init_pixmap will return dimensions of the whole font pixmap. --- wmdocklib/helpers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wmdocklib/helpers.py b/wmdocklib/helpers.py index 0567a37..1da738b 100644 --- a/wmdocklib/helpers.py +++ b/wmdocklib/helpers.py @@ -51,8 +51,8 @@ def read_font(font_name): if not res: raise ValueError("can't infer font size from name (does not " "contain wxh)") - width = res.groupdict().get('w') - height = res.groupdict().get('h') + width = int(res.groupdict().get('w')) + height = int(res.groupdict().get('h')) return width, height, fontdef, font_palette @@ -280,7 +280,7 @@ def init_pixmap(background=None, patterns=None, style='3d', width=64, ] pywmgeneral.include_pixmap(xpm) - return char_width, char_height + return char_width, char_height, charset_start, charset_width def open_xwindow(argv, w, h):