MCPcopy Create free account
hub / github.com/Card-Forge/forge / draw

Method draw

forge-gui-mobile/src/forge/assets/FSkinFont.java:324–328  ·  view source on GitHub ↗
(Batch batch, String text, Color color, float x, float y, float w, boolean wrap, int horzAlignment)

Source from the content-addressed store, hash-verified

322 }
323
324 public void draw(Batch batch, String text, Color color, float x, float y, float w, boolean wrap, int horzAlignment) {
325 updateScale();
326 font.setColor(color);
327 font.draw(batch, text, x, y, w, horzAlignment, wrap);
328 }
329
330 //update scale of font if needed
331 private void updateScale() {

Callers

nothing calls this directly

Calls 3

updateScaleMethod · 0.95
drawMethod · 0.65
setColorMethod · 0.45

Tested by

no test coverage detected