Sets font.
Parameters:
font
font name
font size (max 256)
Returns:
current font
602 603 604 605
# File 'lib/processing/graphics_context.rb', line 602 def textFont(font = nil, size = nil) setFont__ font, size if font || size Font.new @painter__.font end