Skip to content

Change nor to not #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion p5/core/font.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def text_size(size):
if _font_family.path.endswith('ttf') or _font_family.path.endswith('otf'):
_font_family = ImageFont.truetype(_font_family.path, size)
else:
raise ValueError("text_size is nor supported for Bitmap Fonts")
raise ValueError("text_size is not supported for Bitmap Fonts")

def text_width(text):
"""Calculates and returns the width of any character or text string
Expand Down