250 |
} |
} |
251 |
} |
} |
252 |
maxLineLength = span; |
maxLineLength = span; |
253 |
return maxLineLength; |
return Math.max(maxLineLength, 0); |
254 |
} |
} |
255 |
|
|
256 |
public float getPreferredSpan(int axis) |
public float getPreferredSpan(int axis) |
349 |
{ |
{ |
350 |
} |
} |
351 |
|
|
352 |
|
|
353 |
|
if (seg == null || seg.array == null || seg.count == 0) |
354 |
|
continue; |
355 |
|
|
356 |
int width = metrics.charsWidth(seg.array, seg.offset, seg.count); |
int width = metrics.charsWidth(seg.array, seg.offset, seg.count); |
357 |
if (width > longestNewLength) |
if (width > longestNewLength) |
358 |
{ |
{ |