static boolean writeOutText(GlyphData glyphData,float[][] Trm,boolean hasContent,final float currentWidth,final StringBuffer textData,final String spaces){
  final String unicodeValue=glyphData.getUnicodeValue();
  final float fontScale=glyphData.getFontScale();
  if (!unicodeValue.isEmpty()) {
    if (DecoderOptions.embedWidthData) {
      final float xx=Trm[2][0];
      final float yy=Trm[2][1];
      textData.append(spaces);
      if (glyphData.isHorizontal()) {
        textData.append(PdfData.marker);
        textData.append(xx);
        textData.append(PdfData.marker);
      }
 else {
        textData.append(PdfData.marker);
        textData.append(yy);
        textData.append(PdfData.marker);
      }
      textData.append(currentWidth * fontScale);
      textData.append(PdfData.marker);
    }
 else {
      textData.append(spaces);
    }
    final int length=unicodeValue.length();
    char next;
    boolean isXMLExtraction=glyphData.isXMLExtraction();
    for (int ii=0; ii < length; ii++) {
      next=unicodeValue.charAt(ii);
      hasContent=true;
      if (next == 9) {
        next=32;
      }
      if (next == '<' && isXMLExtraction) {
        textData.append("&lt;");
      }
 else       if (next == '>' && isXMLExtraction) {
        textData.append("&gt;");
      }
 else       if (next == 64258) {
        textData.append("fl");
      }
 else       if (next > 31) {
        textData.append(next);
      }
 else       if (next == 13 || next == 10) {
        textData.append(' ');
      }
 else {
        textData.append(hex[next]);
      }
    }
  }
 else {
    textData.append(spaces);
  }
  return hasContent;
}

static boolean writeOutText ( GlyphData glyphData , float [ ] [ ] Trm , boolean hasContent , final float currentWidth , final StringBuffer textData , final String spaces ) { final String unicodeValue = glyphData . getUnicodeValue ( ) ; final float fontScale = glyphData . getFontScale ( ) ; if ( ! unicodeValue . isEmpty ( ) ) { if ( DecoderOptions . embedWidthData ) { final float xx = Trm [ 2 ] [ 0 ] ; final float yy = Trm [ 2 ] [ 1 ] ; textData . append ( spaces ) ; if ( glyphData . isHorizontal ( ) ) { textData . append ( PdfData . marker ) ; textData . append ( xx ) ; textData . append ( PdfData . marker ) ; } else { textData . append ( PdfData . marker ) ; textData . append ( yy ) ; textData . append ( PdfData . marker ) ; } textData . append ( currentWidth * fontScale ) ; textData . append ( PdfData . marker ) ; } else { textData . append ( spaces ) ; } final int length = unicodeValue . length ( ) ; char next ; boolean isXMLExtraction = glyphData . isXMLExtraction ( ) ; for ( int ii = 0 ; ii < length ; ii ++ ) { next = unicodeValue . charAt ( ii ) ; hasContent = true ; if ( next == 9 ) { next = 32 ; } if ( next == '<' && isXMLExtraction ) { textData . append ( "&lt;" ) ; } else if ( next == '>' && isXMLExtraction ) { textData . append ( "&gt;" ) ; } else if ( next == 64258 ) { textData . append ( "fl" ) ; } else if ( next > 31 ) { textData . append ( next ) ; } else if ( next == 13 || next == 10 ) { textData . append ( ' ' ) ; } else { textData . append ( hex [ next ] ) ; } } } else { textData . append ( spaces ) ; } return hasContent ; }
add text chars to our text object for extraction
