improve error generation and handling
This commit is contained in:
parent
38e9d5c250
commit
e159c80b0c
5 changed files with 10 additions and 10 deletions
|
|
@ -221,7 +221,7 @@ def get_char_as_polygons(
|
|||
'advance' distance (distance from the start of this glyph to the start of the next one)
|
||||
"""
|
||||
if len(char) != 1:
|
||||
raise Exception('get_char_as_polygons called with non-char')
|
||||
raise PatternError('get_char_as_polygons called with non-char')
|
||||
|
||||
face = Face(font_path)
|
||||
face.set_char_size(resolution)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue