Skip to content
themixray edited this page Dec 24, 2021 · 5 revisions

Font

Init

Initialization a font

pygwin.font.font(path)
  • path Font path

Returns font

Render

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

Size

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

System Font

pygwin.font.sysFont(name)
  • name System font name

Returns font

Default Font

pygwin.font.defaultFont

Returns font

Clone this wiki locally