Improved the logic that sets the size of the font textures

This commit is contained in:
codeanticode
2013-05-23 19:10:23 -04:00
parent a2ac452e98
commit 482c8ea2e9
4 changed files with 27 additions and 20 deletions

View File

@@ -124,7 +124,8 @@ public class PGL extends processing.opengl.PGL {
*/
protected static final int FLUSH_VERTEX_COUNT = MAX_VERTEX_INDEX1;
/** Maximum dimension of a texture used to hold font data. **/
/** Minimum/maximum dimensions of a texture used to hold font data. **/
protected static final int MIN_FONT_TEX_SIZE = 256;
protected static final int MAX_FONT_TEX_SIZE = 1024;
/** Minimum stroke weight needed to apply the full path stroking