mirror of
https://github.com/gryf/wmdocklib.git
synced 2025-12-19 04:20:17 +01:00
init_pixmap will return dimensions of the whole font pixmap.
This commit is contained in:
@@ -51,8 +51,8 @@ def read_font(font_name):
|
|||||||
if not res:
|
if not res:
|
||||||
raise ValueError("can't infer font size from name (does not "
|
raise ValueError("can't infer font size from name (does not "
|
||||||
"contain wxh)")
|
"contain wxh)")
|
||||||
width = res.groupdict().get('w')
|
width = int(res.groupdict().get('w'))
|
||||||
height = res.groupdict().get('h')
|
height = int(res.groupdict().get('h'))
|
||||||
|
|
||||||
return width, height, fontdef, font_palette
|
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)
|
pywmgeneral.include_pixmap(xpm)
|
||||||
return char_width, char_height
|
return char_width, char_height, charset_start, charset_width
|
||||||
|
|
||||||
|
|
||||||
def open_xwindow(argv, w, h):
|
def open_xwindow(argv, w, h):
|
||||||
|
|||||||
Reference in New Issue
Block a user