class Magick::RVG::Utility::DefaultTextStrategy
Handle “easy” text
def render(x, y, text)
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