/** Prepares the canvas and renders the supplied layout at 0, 0 using the given config. */ public void renderText(TextConfig config, TextLayout layout) { prepare(config.effect.adjustWidth(layout.width()), config.effect.adjustHeight(layout.height())); config.render(canvas(), layout, 0, 0); }
/** Prepares the canvas and renders the supplied text at 0, 0 using the given config. */ public void renderText(TextConfig config, String text) { renderText(config, config.layout(text)); }