About py5
Getting Started
Tutorials
How To...
Discussion
Reference
Developer Information
Get the font’s name.
1 2 3 4 5 6 7 8
def setup(): font = py5.create_font('DejaVu Sans', 15) py5.text_font(font) py5.text(font.get_name(), 5, 20) py5.text(font.get_post_script_name(), 5, 40) py5.text(font.get_size(), 5, 60) py5.text(font.get_default_size(), 5, 80)
Underlying Processing method: PFont.getName
get_name() -> str
Updated on November 12, 2021 11:30:58am UTC
previous
Py5Font.get_glyph_count()
next
Py5Font.get_post_script_name()