diff --git a/core/src/processing/core/PGraphics.java b/core/src/processing/core/PGraphics.java index e651d7469..e4fd2c550 100644 --- a/core/src/processing/core/PGraphics.java +++ b/core/src/processing/core/PGraphics.java @@ -4595,9 +4595,11 @@ public class PGraphics extends PImage implements PConstants { * ignored. */ public void text(String str, float x, float y) { - // fix for #5625 pixelDensity(2) breaks the width of a tab ("\t") in JAVA2D - // makes the tab width consistent across renderers - str = str.replaceAll("\t", " "); + if (str.indexOf('\t') != -1) { + // https://github.com/processing/processing/issues/5625 + // https://github.com/processing/processing/pull/5633 + str = str.replaceAll("\t", " "); + } if (textFont == null) { defaultFontOrDeath("text"); diff --git a/core/todo.txt b/core/todo.txt index 7fab3bb42..2355ff2fa 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -1,5 +1,13 @@ 0266 (3.4.1 or 3.5) X make JSONObject.quote() (both versions) public +X fix javaPlatform variable for newer JDK versions +X https://github.com/processing/processing/pull/5626 + +contrib +X make tabs into spaces, fixes pixelDensity(2) issue with tabs +X https://github.com/processing/processing/issues/5625 +X https://github.com/processing/processing/pull/5633 + _ NullPointerException at java.awt.Window.init(Window.java:497) when using Airplay _ https://github.com/processing/processing/issues/5620 @@ -9,6 +17,8 @@ data _ Dict.remove() should return value, not index (for consistency w/ others) _ check again whether element 0,0 in a Table is working _ https://github.com/processing/processing/issues/3011 +_ should DoubleDict create from Iterable or Map<>? +_ (Map is more efficient b/c of size, Iterable more useful) 3.5+