Py5Font.is_smooth()#

Boolean value reflecting if smoothing (anti-aliasing) was used when the font was created.

Examples#

example picture for is_smooth()
 1def setup():
 2    font1 = py5.create_font('DejaVu Sans', 45)
 3    font2 = py5.create_font('DejaVu Sans', 45, False)
 4
 5    py5.text_font(font1)
 6    py5.println(font1.is_smooth())
 7    py5.text('py5', 10, 40)
 8
 9    py5.println(font2.is_smooth())
10    py5.text_font(font2)
11    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

Syntax#

is_smooth() -> bool

Updated on November 12, 2021 11:30:58am UTC