code: def write_screen(self, font, color, screen_pos, text, align="left",
                     valign="top"):
      
      pos = point.Point(*screen_pos) * point.Point(0.75, 1) * font.get_linesize()
      text_surf = font.render(str(text), True, color)
      rect = text_surf.get_rect()
      if pos.x >= 0:
        setattr(rect, align, pos.x)
      else:
        setattr(rect, align, self.surf.get_width() + pos.x)
      if pos.y >= 0:
        setattr(rect, valign, pos.y)
      else:
        setattr(rect, valign, self.surf.get_height() + pos.y)
      self.surf.blit(text_surf, rect)
docs: Write to the screen in font.size relative coordinates.