/** Creates a new instance of HeadTable * Makes up reasonable(?) defaults for all values */ protected HheaTable() { super(TrueTypeTable.HEAD_TABLE); setVersion(0x10000); }
/** Creates a new instance of HeadTable * Makes up reasonable(?) defaults for all values */ protected HheaTable() { super(TrueTypeTable.HEAD_TABLE); setVersion(0x10000); }
/** Creates a new instance of HeadTable * Makes up reasonable(?) defaults for all values */ protected HheaTable() { super(TrueTypeTable.HEAD_TABLE); setVersion(0x10000); }
/** * Parse the data before it is set */ public void setData(ByteBuffer data) { if (data.remaining() != 36) { throw new IllegalArgumentException("Bad Head table size"); } setVersion(data.getInt()); setAscent(data.getShort()); setDescent(data.getShort()); setLineGap(data.getShort()); setAdvanceWidthMax(data.getShort()); setMinLeftSideBearing(data.getShort()); setMinRightSideBearing(data.getShort()); setXMaxExtent(data.getShort()); setCaretSlopeRise(data.getShort()); setCaretSlopeRun(data.getShort()); setCaretOffset(data.getShort()); // padding data.getShort(); data.getShort(); data.getShort(); data.getShort(); setMetricDataFormat(data.getShort()); setNumOfLongHorMetrics(data.getShort()); }
/** * Parse the data before it is set */ public void setData(ByteBuffer data) { if (data.remaining() != 36) { throw new IllegalArgumentException("Bad Head table size"); } setVersion(data.getInt()); setAscent(data.getShort()); setDescent(data.getShort()); setLineGap(data.getShort()); setAdvanceWidthMax(data.getShort()); setMinLeftSideBearing(data.getShort()); setMinRightSideBearing(data.getShort()); setXMaxExtent(data.getShort()); setCaretSlopeRise(data.getShort()); setCaretSlopeRun(data.getShort()); setCaretOffset(data.getShort()); // padding data.getShort(); data.getShort(); data.getShort(); data.getShort(); setMetricDataFormat(data.getShort()); setNumOfLongHorMetrics(data.getShort()); }
/** * Parse the data before it is set */ public void setData(ByteBuffer data) { if (data.remaining() != 36) { throw new IllegalArgumentException("Bad Head table size"); } setVersion(data.getInt()); setAscent(data.getShort()); setDescent(data.getShort()); setLineGap(data.getShort()); setAdvanceWidthMax(data.getShort()); setMinLeftSideBearing(data.getShort()); setMinRightSideBearing(data.getShort()); setXMaxExtent(data.getShort()); setCaretSlopeRise(data.getShort()); setCaretSlopeRun(data.getShort()); setCaretOffset(data.getShort()); // padding data.getShort(); data.getShort(); data.getShort(); data.getShort(); setMetricDataFormat(data.getShort()); setNumOfLongHorMetrics(data.getShort()); }