static TextHitInfo x2RelOffset(TextLayout textLayout, float x) { TextHitInfo hit; x -= EXTRA_MARGIN_WIDTH; if (x >= textLayout.getAdvance()) { hit = TextHitInfo.trailing(textLayout.getCharacterCount()); } else { hit = textLayout.hitTestChar(x, 0); // What about backward bias -> with higher offsets it may go back visually } return hit; }
if ( ( renderableComplexText.getRawText().length() > textLayout.getCharacterCount() ) && startPosIntValue >= 0 ) { text = renderableComplexText.getRawText().substring( startPosIntValue, textLayout.getCharacterCount() + startPosIntValue ); } else { text = renderableComplexText.getRawText();
if (tl == null) break; int charCount = tl.getCharacterCount(); String line = tooltipInfo.getTitle().substring(titleCurrOffset, titleCurrOffset + charCount); if (tl == null) break; int charCount = tl.getCharacterCount(); String line = descText.substring(currOffset, currOffset + charCount); if (tl == null) break; int charCount = tl.getCharacterCount(); String line = footerText.substring(currOffset, currOffset + charCount);
if (tl == null) break; int charCount = tl.getCharacterCount(); String line = descText.substring(currOffset, currOffset + charCount); if (tl == null) break; int charCount = tl.getCharacterCount(); String line = footerText.substring(currOffset, currOffset + charCount);
final int firstSequenceEndpoint = 0, secondSequenceEndpoint = textLayout.getCharacterCount(); final Shape generatedCollisionShape = textLayout.getBlackBoxBounds(firstSequenceEndpoint, secondSequenceEndpoint);
paragraph, startIndex, startIndex + layout.getCharacterCount() ); layout = new TextLayout(tmpText.getIterator(), grx.getFontRenderContext()); paragraph, startIndex, startIndex + layout.getCharacterCount() ).getIterator(), fontSize
paragraph, lineStartPosition, lineStartPosition + layout.getCharacterCount() ).getIterator(), textElement.getFontSize()