    # File lib/rvg/misc.rb, line 320
                    def render(x, y, text)
                        @ctx.gc.text(x, y, enquote(text))
                        tm = @ctx.shadow.get_type_metrics(text)
                        dx = case @ctx.text_attrs.text_anchor
                                when :start
                                     tm.width
                                when :middle
                                     tm.width / 2
                                when :end
                                     0
                              end
                        [dx, 0]
                    end