@Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("'post' Table - PostScript Metrics\n---------------------------------\n") .append("\n 'post' version: ") .append(Fixed.floatValue(version)) .append("\n italicAngle: ") .append(Fixed.floatValue(italicAngle)) .append("\n underlinePosition: ") .append(underlinePosition) .append("\n underlineThickness: ") .append(underlineThickness) .append("\n isFixedPitch: ") .append(isFixedPitch) .append("\n minMemType42: ") .append(minMemType42) .append("\n maxMemType42: ") .append(maxMemType42) .append("\n minMemType1: ") .append(minMemType1) .append("\n maxMemType1: ") .append(maxMemType1); if (version == 0x00020000) { sb.append("\n\n Format 2.0: Non-Standard (for PostScript) TrueType Glyph Set.\n"); sb.append(" numGlyphs: ").append(numGlyphs).append("\n"); for (int i = 0; i < numGlyphs; i++) { sb.append(" Glyf ").append(i).append(" -> "); if (isMacGlyphName(i)) { sb.append("Mac Glyph # ") .append(glyphNameIndex[i]) .append(", '") .append(macGlyphName[glyphNameIndex[i]]) .append("'\n"); } else { sb.append("PSGlyf Name # ") .append(glyphNameIndex[i] - 257) .append(", name= '") .append(psGlyphName[glyphNameIndex[i] - 258]) .append("'\n"); } } sb.append("\n Full List of PSGlyf Names\n ------------------------\n"); for (int i = 0; i < psGlyphName.length; i++) { sb.append(" PSGlyf Name # ") .append(i + 1) .append(": ") .append(psGlyphName[i]) .append("\n"); } } return sb.toString(); }
public String toString() { return new StringBuffer() .append("'vhea' Table - Vertical Header\n------------------------------") .append("\n 'vhea' version: ") .append(Fixed.floatValue(_version)) .append("\n xAscender: ") .append(_ascent) .append("\n xDescender: ") .append(_descent) .append("\n xLineGap: ") .append(_lineGap) .append("\n advanceHeightMax: ") .append(_advanceHeightMax) .append("\n minTopSideBearing: ") .append(_minTopSideBearing) .append("\n minBottomSideBearing: ") .append(_minBottomSideBearing) .append("\n yMaxExtent: ") .append(_yMaxExtent) .append("\n horizCaretSlopeNum: ") .append(_caretSlopeRise) .append("\n horizCaretSlopeDenom: ") .append(_caretSlopeRun) .append("\n reserved0: 0") .append("\n reserved1: 0") .append("\n reserved2: 0") .append("\n reserved3: 0") .append("\n reserved4: 0") .append("\n metricDataFormat: ") .append(_metricDataFormat) .append("\n numOf_LongVerMetrics: ") .append(_numberOfLongVerMetrics) .toString(); }