• Home
  • Raw
  • Download

Lines Matching refs:text

19 import com.ibm.icu.text.BreakIterator;
41 import java.text.AttributedString;
179 LineInfo(AttributedString text, int width) { in LineInfo() argument
180 mLineContent = text; in LineInfo()
203 public void addLine(String text, int width, Font textFont, Font fallbackFont) { in addLine() argument
204 AttributedString attributedText = new AttributedString(text); in addLine()
211 if (text.contains(ANDROID_STRING) in addLine()
213 int index = text.indexOf(ANDROID_STRING); in addLine()
221 if (text.indexOf(punctuation) != -1 && !textFont.canDisplay(punctuation)) { in addLine()
223 while ((index = text.indexOf(punctuation, index)) != -1) { in addLine()
404 private WrappedTextInfo wrapText(String text, FontMetrics metrics) { in wrapText() argument
408 lineBoundary.setText(text); in wrapText()
415 String token = text.substring(start, end); in wrapText()
448 private WrappedTextInfo processAndWrapText(String text, FontMetrics metrics) { in processAndWrapText() argument
450 String processed = text.replace("\\'", "'"); in processAndWrapText()
498 private int measureTextWidth(String text, Locale locale) in measureTextWidth() argument
502 WrappedTextInfo wrappedTextInfo = processAndWrapText(text, fontMetrics); in measureTextWidth()
531 private void drawText(String text, Locale locale, String languageTag) in drawText() argument
533 LOGGER.info("Encoding \"" + locale + "\" as \"" + languageTag + "\": " + text); in drawText()
537 WrappedTextInfo wrappedTextInfo = processAndWrapText(text, fontMetrics); in drawText()