From 21c2466f9d0adab8d2bb1473e0e967e6308175b4 Mon Sep 17 00:00:00 2001 From: iTut <83431472+iTutFadU@users.noreply.github.com> Date: Tue, 10 Feb 2026 03:23:48 +0300 Subject: [PATCH] Use `start` instead of 0 for the starting index in `text(char[], int, int, float, float)` (#1257) --- core/src/processing/core/PGraphics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/core/PGraphics.java b/core/src/processing/core/PGraphics.java index 0b9f0d2ed..1ada6aa2a 100644 --- a/core/src/processing/core/PGraphics.java +++ b/core/src/processing/core/PGraphics.java @@ -4768,7 +4768,7 @@ public class PGraphics extends PImage implements PConstants { } // int start = 0; - int index = 0; + int index = start; while (index < stop) { //length) { if (chars[index] == '\n') { textLineAlignImpl(chars, start, index, x, y);