1. Matthew Turk
  2. vanhoek

Source

vanhoek / vanhoek / primitives / text.py

import cairo

class TextObject(object):
    def __init__(self, text, position):
        self.text = text
        self.position = position

    def render(self, context):
        context.move_to(self.position[0], self.position[1])
        context.select_font_face("Sans")
        context.show_text(self.text)