You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This occurs in the getLength method: (gltext.java: 342)
int c = (int)text.charAt( i ) - CHAR_START; // Calculate Character Index (Offset by First Char in Font)
len += ( charWidths[c] * scaleX ); // Add Scaled Character Width to Total Length
If charAt(i) is a char > 96 (special char) then we get ArrayIndexOutOfBoundsException.
Needs something similar to :
if ( c < 0 || c >= CHAR_CNT) {
The text was updated successfully, but these errors were encountered:
This occurs in the getLength method: (gltext.java: 342)
int c = (int)text.charAt( i ) - CHAR_START; // Calculate Character Index (Offset by First Char in Font)
len += ( charWidths[c] * scaleX ); // Add Scaled Character Width to Total Length
If charAt(i) is a char > 96 (special char) then we get ArrayIndexOutOfBoundsException.
Needs something similar to :
if ( c < 0 || c >= CHAR_CNT) {
The text was updated successfully, but these errors were encountered: