-
Notifications
You must be signed in to change notification settings - Fork 2
Font
themixray edited this page Dec 24, 2021
·
5 revisions
Initialization a font
pygwin.font.font(path)
- path Font path
Returns font
Render the font
font.render(text,size,color,newLineSpace=5,
italic=False,bold=False,underline=False)
- text Text
- size Font size
- color Font color
- newLineSpace Space between lines
- italic Is font italic
- bold Is font bold
- underline Is font underline
Returns surface
Render the font
font.size(text,size,newLineSpace=5,
italic=False,bold=False,underline=False)
- text Text
- size Font size
- newLineSpace Space between lines
- italic Is font italic
- bold Is font bold
- underline Is font underline
Returns tuple
pygwin.font.sysFont(name)
- name System font name
Returns font
pygwin.font.defaultFont
Returns font