if (!fontData.isWhitespace((char)run.glyphs.get(wrapIndex).id)) break; if (wrapIndex > 0) { run.glyphs.removeRange(0, wrapIndex - 1); for (; lastIndex > 0; lastIndex--) { Glyph g = previous.glyphs.get(lastIndex); if (!fontData.isWhitespace((char)g.id)) break; previous.width -= previous.xAdvances.get(lastIndex + 1);
if (!fontData.isWhitespace((char)run.glyphs.get(wrapIndex).id)) break; if (wrapIndex > 0) { run.glyphs.removeRange(0, wrapIndex - 1); for (; lastIndex > 0; lastIndex--) { Glyph g = previous.glyphs.get(lastIndex); if (!fontData.isWhitespace((char)g.id)) break; previous.width -= previous.xAdvances.get(lastIndex + 1);
if (!fontData.isWhitespace((char)run.glyphs.get(wrapIndex).id)) break; if (wrapIndex > 0) { run.glyphs.removeRange(0, wrapIndex - 1); for (; lastIndex > 0; lastIndex--) { Glyph g = previous.glyphs.get(lastIndex); if (!fontData.isWhitespace((char)g.id)) break; previous.width -= previous.xAdvances.get(lastIndex + 1);
if (!fontData.isWhitespace((char)glyphs2.get(firstEnd - 1).id)) break; if (!fontData.isWhitespace((char)glyphs2.get(secondStart).id)) break;
/** Returns the first valid glyph index to use to wrap to the next line, starting at the specified start index and * (typically) moving toward the beginning of the glyphs array. */ public int getWrapIndex (Array<Glyph> glyphs, int start) { int i = start - 1; if (isWhitespace((char)glyphs.get(i).id)) return i; for (; i > 0; i--) if (!isWhitespace((char)glyphs.get(i).id)) break; for (; i > 0; i--) { char ch = (char)glyphs.get(i).id; if (isWhitespace(ch) || isBreakChar(ch)) return i + 1; } return 0; }
if (!fontData.isWhitespace((char)glyphs2.get(firstEnd - 1).id)) break; if (!fontData.isWhitespace((char)glyphs2.get(secondStart).id)) break;
if (!fontData.isWhitespace((char)glyphs2.get(firstEnd - 1).id)) break; if (!fontData.isWhitespace((char)glyphs2.get(secondStart).id)) break;
/** Returns the first valid glyph index to use to wrap to the next line, starting at the specified start index and * (typically) moving toward the beginning of the glyphs array. */ public int getWrapIndex (Array<Glyph> glyphs, int start) { int i = start - 1; if (isWhitespace((char)glyphs.get(i).id)) return i; for (; i > 0; i--) if (!isWhitespace((char)glyphs.get(i).id)) break; for (; i > 0; i--) { char ch = (char)glyphs.get(i).id; if (isWhitespace(ch) || isBreakChar(ch)) return i + 1; } return 0; }
/** Returns the first valid glyph index to use to wrap to the next line, starting at the specified start index and * (typically) moving toward the beginning of the glyphs array. */ public int getWrapIndex (Array<Glyph> glyphs, int start) { int i = start - 1; if (isWhitespace((char)glyphs.get(i).id)) return i; for (; i > 0; i--) if (!isWhitespace((char)glyphs.get(i).id)) break; for (; i > 0; i--) { char ch = (char)glyphs.get(i).id; if (isWhitespace(ch) || isBreakChar(ch)) return i + 1; } return 0; }