def METHOD_NAME(context, text, x, y, brush=NullGraphicsBrush, anchor="start"):
    # SVG spec appears to originate text from the bottom
    # rather than the top as with our API. This function
    # will measure and then re-orient the text as needed.
    w, h = context.GetTextExtent(text)
    if anchor != "start":
        if anchor == "middle":
            x -= w / 2.0
        elif anchor == "end":
            x -= w
    y -= h
    context.METHOD_NAME(text, x, y)