mirror of
https://github.com/gryf/wmdocklib.git
synced 2025-12-18 20:10:23 +01:00
1587104: error initializing font 3x5
it really was a library problem... it was caused inside getFont by the way I was choosing an alternative to a clashing character code. the correct way is by choosing outside both the already defined characters and the characters that the font uses. we were creating a cascade in clashes, and were not able to handle it correctly. avoiding the problem is the best cure.
This commit is contained in:
@@ -279,7 +279,7 @@ def initPixmap(background=None,
|
||||
if available[code]:
|
||||
continue
|
||||
if palette[code] != font_palette[code]:
|
||||
newcode = [k for k in available if available[k]][0]
|
||||
newcode = [k for k in available if available[k] and not k in font_palette][0]
|
||||
available[newcode] = False
|
||||
replace.append((code, newcode))
|
||||
for code, newcode in replace:
|
||||
|
||||
Reference in New Issue
Block a user