original_docstring: 
      Draws text onto a surface. If center, text is centered on screen at y
      
docstring: Draws text onto a surface. If center, text is centered on screen at y
docstring_tokens: Draws text onto a surface . If center text is centered on screen at y
code: def print_text(surface, font, text, surf_rect, x = 0, y = 0, center = False,\
                 color = (255, 255, 255)):
      """
      Draws text onto a surface. If center, text is centered on screen at y
      """
      if not center:
          textimage = font.render(text, True, color)
          surface.blit(textimage, (x, y))
      else:
          textimage = font.render(text, True, color)
          text_rect = textimage.get_rect()
          x = (surf_rect.width // 2) - (text_rect.width // 2 )
          surface.blit(textimage, (x, y))
code_tokens: def print_text ( surface , font , text , surf_rect , x = 0 , y = 0 , center = False , color = ( 255 , 255 , 255 ) ) : if not center : textimage = font . render ( text , True , color ) surface . blit ( textimage , ( x , y ) ) else : textimage = font . render ( text , True , color ) text_rect = textimage . get_rect ( ) x = ( surf_rect . width // 2 ) - ( text_rect . width // 2 ) surface . blit ( textimage , ( x , y ) )
short_docstring: Draws text onto a surface.
short_docstring_tokens: Draws text onto a surface .
comment: """
      Draws text onto a surface. If center, text is centered on screen at y
      """