Py5Font.get_post_script_name()#

Get the font’s postscript name.

Examples#

example picture for get_post_script_name()
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)

Description#

Get the font’s postscript name.

Underlying Processing method: PFont.getPostScriptName

Signatures#

get_post_script_name() -> str

Updated on September 01, 2022 16:36:02pm UTC