/** * get normal,super or subscript. * @return offset type to use (none,super,sub) * @see #SS_NONE * @see #SS_SUPER * @see #SS_SUB */ public short getTypeOffset() { return font.getSuperSubScript(); }
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[FONT]\n"); sb.append(" .fontheight = ").append(HexDump.shortToHex(getFontHeight())).append("\n"); sb.append(" .attributes = ").append(HexDump.shortToHex(getAttributes())).append("\n"); sb.append(" .italic = ").append(isItalic()).append("\n"); sb.append(" .strikout = ").append(isStruckout()).append("\n"); sb.append(" .macoutlined= ").append(isMacoutlined()).append("\n"); sb.append(" .macshadowed= ").append(isMacshadowed()).append("\n"); sb.append(" .colorpalette = ").append(HexDump.shortToHex(getColorPaletteIndex())).append("\n"); sb.append(" .boldweight = ").append(HexDump.shortToHex(getBoldWeight())).append("\n"); sb.append(" .supersubscript= ").append(HexDump.shortToHex(getSuperSubScript())).append("\n"); sb.append(" .underline = ").append(HexDump.byteToHex(getUnderline())).append("\n"); sb.append(" .family = ").append(HexDump.byteToHex(getFamily())).append("\n"); sb.append(" .charset = ").append(HexDump.byteToHex(getCharset())).append("\n"); sb.append(" .fontname = ").append(getFontName()).append("\n"); sb.append("[/FONT]\n"); return sb.toString(); }
public void serialize(LittleEndianOutput out) { out.writeShort(getFontHeight()); out.writeShort(getAttributes()); out.writeShort(getColorPaletteIndex()); out.writeShort(getBoldWeight()); out.writeShort(getSuperSubScript()); out.writeByte(getUnderline()); out.writeByte(getFamily()); out.writeByte(getCharset()); out.writeByte(field_9_zero); int fontNameLen = field_11_font_name.length(); out.writeByte(fontNameLen); boolean hasMultibyte = StringUtil.hasMultibyte(field_11_font_name); out.writeByte(hasMultibyte ? 0x01 : 0x00); if (fontNameLen > 0) { if (hasMultibyte) { StringUtil.putUnicodeLE(field_11_font_name, out); } else { StringUtil.putCompressedUnicode(field_11_font_name, out); } } } protected int getDataSize() {
/** * get normal,super or subscript. * @return offset type to use (none,super,sub) * @see #SS_NONE * @see #SS_SUPER * @see #SS_SUB */ public short getTypeOffset() { return font.getSuperSubScript(); }
/** * get normal,super or subscript. * @return offset type to use (none,super,sub) * @see #SS_NONE * @see #SS_SUPER * @see #SS_SUB */ public short getTypeOffset() { return font.getSuperSubScript(); }
/** * get normal,super or subscript. * @return offset type to use (none,super,sub) * @see #SS_NONE * @see #SS_SUPER * @see #SS_SUB */ public short getTypeOffset() { return font.getSuperSubScript(); }
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[FONT]\n"); sb.append(" .fontheight = ").append(HexDump.shortToHex(getFontHeight())).append("\n"); sb.append(" .attributes = ").append(HexDump.shortToHex(getAttributes())).append("\n"); sb.append(" .italic = ").append(isItalic()).append("\n"); sb.append(" .strikout = ").append(isStruckout()).append("\n"); sb.append(" .macoutlined= ").append(isMacoutlined()).append("\n"); sb.append(" .macshadowed= ").append(isMacshadowed()).append("\n"); sb.append(" .colorpalette = ").append(HexDump.shortToHex(getColorPaletteIndex())).append("\n"); sb.append(" .boldweight = ").append(HexDump.shortToHex(getBoldWeight())).append("\n"); sb.append(" .supersubscript= ").append(HexDump.shortToHex(getSuperSubScript())).append("\n"); sb.append(" .underline = ").append(HexDump.byteToHex(getUnderline())).append("\n"); sb.append(" .family = ").append(HexDump.byteToHex(getFamily())).append("\n"); sb.append(" .charset = ").append(HexDump.byteToHex(getCharset())).append("\n"); sb.append(" .fontname = ").append(getFontName()).append("\n"); sb.append("[/FONT]\n"); return sb.toString(); }
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[FONT]\n"); sb.append(" .fontheight = ").append(HexDump.shortToHex(getFontHeight())).append("\n"); sb.append(" .attributes = ").append(HexDump.shortToHex(getAttributes())).append("\n"); sb.append(" .italic = ").append(isItalic()).append("\n"); sb.append(" .strikout = ").append(isStruckout()).append("\n"); sb.append(" .macoutlined= ").append(isMacoutlined()).append("\n"); sb.append(" .macshadowed= ").append(isMacshadowed()).append("\n"); sb.append(" .colorpalette = ").append(HexDump.shortToHex(getColorPaletteIndex())).append("\n"); sb.append(" .boldweight = ").append(HexDump.shortToHex(getBoldWeight())).append("\n"); sb.append(" .supersubscript= ").append(HexDump.shortToHex(getSuperSubScript())).append("\n"); sb.append(" .underline = ").append(HexDump.byteToHex(getUnderline())).append("\n"); sb.append(" .family = ").append(HexDump.byteToHex(getFamily())).append("\n"); sb.append(" .charset = ").append(HexDump.byteToHex(getCharset())).append("\n"); sb.append(" .fontname = ").append(getFontName()).append("\n"); sb.append("[/FONT]\n"); return sb.toString(); }
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[FONT]\n"); sb.append(" .fontheight = ").append(HexDump.shortToHex(getFontHeight())).append("\n"); sb.append(" .attributes = ").append(HexDump.shortToHex(getAttributes())).append("\n"); sb.append(" .italic = ").append(isItalic()).append("\n"); sb.append(" .strikout = ").append(isStruckout()).append("\n"); sb.append(" .macoutlined= ").append(isMacoutlined()).append("\n"); sb.append(" .macshadowed= ").append(isMacshadowed()).append("\n"); sb.append(" .colorpalette = ").append(HexDump.shortToHex(getColorPaletteIndex())).append("\n"); sb.append(" .boldweight = ").append(HexDump.shortToHex(getBoldWeight())).append("\n"); sb.append(" .supersubscript= ").append(HexDump.shortToHex(getSuperSubScript())).append("\n"); sb.append(" .underline = ").append(HexDump.byteToHex(getUnderline())).append("\n"); sb.append(" .family = ").append(HexDump.byteToHex(getFamily())).append("\n"); sb.append(" .charset = ").append(HexDump.byteToHex(getCharset())).append("\n"); sb.append(" .fontname = ").append(getFontName()).append("\n"); sb.append("[/FONT]\n"); return sb.toString(); }
public void serialize(LittleEndianOutput out) { out.writeShort(getFontHeight()); out.writeShort(getAttributes()); out.writeShort(getColorPaletteIndex()); out.writeShort(getBoldWeight()); out.writeShort(getSuperSubScript()); out.writeByte(getUnderline()); out.writeByte(getFamily()); out.writeByte(getCharset()); out.writeByte(field_9_zero); int fontNameLen = field_11_font_name.length(); out.writeByte(fontNameLen); boolean hasMultibyte = StringUtil.hasMultibyte(field_11_font_name); out.writeByte(hasMultibyte ? 0x01 : 0x00); if (fontNameLen > 0) { if (hasMultibyte) { StringUtil.putUnicodeLE(field_11_font_name, out); } else { StringUtil.putCompressedUnicode(field_11_font_name, out); } } } protected int getDataSize() {
public void serialize(LittleEndianOutput out) { out.writeShort(getFontHeight()); out.writeShort(getAttributes()); out.writeShort(getColorPaletteIndex()); out.writeShort(getBoldWeight()); out.writeShort(getSuperSubScript()); out.writeByte(getUnderline()); out.writeByte(getFamily()); out.writeByte(getCharset()); out.writeByte(field_9_zero); int fontNameLen = field_11_font_name.length(); out.writeByte(fontNameLen); boolean hasMultibyte = StringUtil.hasMultibyte(field_11_font_name); out.writeByte(hasMultibyte ? 0x01 : 0x00); if (fontNameLen > 0) { if (hasMultibyte) { StringUtil.putUnicodeLE(field_11_font_name, out); } else { StringUtil.putCompressedUnicode(field_11_font_name, out); } } } protected int getDataSize() {
public void serialize(LittleEndianOutput out) { out.writeShort(getFontHeight()); out.writeShort(getAttributes()); out.writeShort(getColorPaletteIndex()); out.writeShort(getBoldWeight()); out.writeShort(getSuperSubScript()); out.writeByte(getUnderline()); out.writeByte(getFamily()); out.writeByte(getCharset()); out.writeByte(field_9_zero); int fontNameLen = field_11_font_name.length(); out.writeByte(fontNameLen); boolean hasMultibyte = StringUtil.hasMultibyte(field_11_font_name); out.writeByte(hasMultibyte ? 0x01 : 0x00); if (fontNameLen > 0) { if (hasMultibyte) { StringUtil.putUnicodeLE(field_11_font_name, out); } else { StringUtil.putCompressedUnicode(field_11_font_name, out); } } } protected int getDataSize() {