Py5Font.is_smooth()
Contents
Py5Font.is_smooth()¶
Boolean value reflecting if smoothing (anti-aliasing) was used when the font was created.
Examples¶

1 2 3 4 5 6 7 8 9 10 11 | def setup():
font1 = py5.create_font('DejaVu Sans', 45)
font2 = py5.create_font('DejaVu Sans', 45, False)
py5.text_font(font1)
py5.println(font1.is_smooth())
py5.text('py5', 10, 40)
py5.println(font2.is_smooth())
py5.text_font(font2)
py5.text('py5', 10, 90)
|
Description¶
Boolean value reflecting if smoothing (anti-aliasing) was used when the font was created. By default, create_font() will use smoothing.
Underlying Processing method: PFont.isSmooth