Merge pull request #15 from tannewt/load_string_glyphs
Handle string inputs to load_glyphs for BDF.
This commit is contained in:
commit
b3356eb5e2
1 changed files with 4 additions and 0 deletions
|
|
@ -92,6 +92,10 @@ class BDF(GlyphCache):
|
|||
if isinstance(code_points, int):
|
||||
remaining = set()
|
||||
remaining.add(code_points)
|
||||
elif isinstance(code_points, str):
|
||||
remaining = set(ord(c) for c in code_points)
|
||||
elif isinstance(code_points, set):
|
||||
remaining = code_points
|
||||
else:
|
||||
remaining = set(code_points)
|
||||
for code_point in remaining:
|
||||
|
|
|
|||
Loading…
Reference in a new issue