From befd753dfda1469e052183e3f257cc5f55842d67 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Sun, 21 Jun 2015 13:52:15 -0400 Subject: [PATCH] set default density for backwards compat (fixes #3413) --- core/src/processing/core/PFont.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/core/src/processing/core/PFont.java b/core/src/processing/core/PFont.java index 47f493794..c8502c5e1 100644 --- a/core/src/processing/core/PFont.java +++ b/core/src/processing/core/PFont.java @@ -88,12 +88,8 @@ public class PFont implements PConstants { //protected int size; private int size; - protected int density; -// /** -// * The size that this font will default to when drawn. Used to create fonts -// * at 2x the size for high-res displays in OpenGL. -// */ -// protected int defaultSize; + /** Default density set to 1 for backwards compatibility with loadFont(). */ + protected int density = 1; /** true if smoothing was enabled for this font, used for native impl */ protected boolean smooth;