'Get the cursor from the font, used as a fallback if xcb-util-cursor
is not installed'

def get_font_cursor(self, name, cursor_font):

    fid = self.conn.conn.generate_id()
    self.conn.conn.core.OpenFont(fid, len('cursor'), 'cursor')
    cursor = self.conn.conn.generate_id()
    self.conn.conn.core.CreateGlyphCursor(cursor, fid, fid, cursor_font, (cursor_font + 1), 0, 0, 0, 65535, 65535, 65535)
    return cursor
