Revert RichLabelAnnotator font size
This commit is contained in:
parent
cfe29cd05f
commit
e3fc238c70
|
|
@ -1154,9 +1154,9 @@ class RichLabelAnnotator(BaseAnnotator):
|
|||
self.font = ImageFont.truetype(font_path, font_size)
|
||||
except OSError:
|
||||
print(f"Font path '{font_path}' not found. Using PIL's default font.")
|
||||
self.font = ImageFont.load_default()
|
||||
self.font = ImageFont.load_default(font_size)
|
||||
else:
|
||||
self.font = ImageFont.load_default()
|
||||
self.font = ImageFont.load_default(font_size)
|
||||
|
||||
@convert_for_rich_text_annotation
|
||||
def annotate(
|
||||
|
|
|
|||
Loading…
Reference in New Issue