1
0
mirror of https://github.com/gryf/wmdocklib.git synced 2025-12-18 20:10:23 +01:00

init_pixmap will return dimensions of the whole font pixmap.

This commit is contained in:
2022-04-13 17:10:18 +02:00
parent 67cddb24ea
commit a6f372be91

View File

@@ -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):