📄 truetypefontsubset.html
字号:
<DL><DL></DL></DL><HR><A NAME="tableGlyphOffset"><!-- --></A><H3>tableGlyphOffset</H3><PRE>protected int <B>tableGlyphOffset</B></PRE><DL><DL></DL></DL><HR><A NAME="newLocaTable"><!-- --></A><H3>newLocaTable</H3><PRE>protected int[] <B>newLocaTable</B></PRE><DL><DL></DL></DL><HR><A NAME="newLocaTableOut"><!-- --></A><H3>newLocaTableOut</H3><PRE>protected byte[] <B>newLocaTableOut</B></PRE><DL><DL></DL></DL><HR><A NAME="newGlyfTable"><!-- --></A><H3>newGlyfTable</H3><PRE>protected byte[] <B>newGlyfTable</B></PRE><DL><DL></DL></DL><HR><A NAME="glyfTableRealSize"><!-- --></A><H3>glyfTableRealSize</H3><PRE>protected int <B>glyfTableRealSize</B></PRE><DL><DL></DL></DL><HR><A NAME="locaTableRealSize"><!-- --></A><H3>locaTableRealSize</H3><PRE>protected int <B>locaTableRealSize</B></PRE><DL><DL></DL></DL><HR><A NAME="outFont"><!-- --></A><H3>outFont</H3><PRE>protected byte[] <B>outFont</B></PRE><DL><DL></DL></DL><HR><A NAME="fontPtr"><!-- --></A><H3>fontPtr</H3><PRE>protected int <B>fontPtr</B></PRE><DL><DL></DL></DL><HR><A NAME="directoryOffset"><!-- --></A><H3>directoryOffset</H3><PRE>protected int <B>directoryOffset</B></PRE><DL><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="TrueTypeFontSubSet(java.lang.String, com.lowagie.text.pdf.RandomAccessFileOrArray, java.util.HashMap, int, boolean, boolean)"><!-- --></A><H3>TrueTypeFontSubSet</H3><PRE><B>TrueTypeFontSubSet</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fileName, <A HREF="../../../../com/lowagie/text/pdf/RandomAccessFileOrArray.html" title="class in com.lowagie.text.pdf">RandomAccessFileOrArray</A> rf, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</A> glyphsUsed, int directoryOffset, boolean includeCmap, boolean includeExtras)</PRE><DL><DD>Creates a new TrueTypeFontSubSet<P><DL><DT><B>Parameters:</B><DD><CODE>directoryOffset</CODE> - The offset from the start of the file to the table directory<DD><CODE>fileName</CODE> - the file name of the font<DD><CODE>glyphsUsed</CODE> - the glyphs used<DD><CODE>includeCmap</CODE> - <CODE>true</CODE> if the table cmap is to be included in the generated font</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="process()"><!-- --></A><H3>process</H3><PRE>byte[] <B>process</B>() throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A>, <A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></PRE><DL><DD>Does the actual work of subsetting the font.<P><DD><DL><DT><B>Returns:</B><DD>the subset font<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - on error<DD><CODE><A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE> - on error</DL></DD></DL><HR><A NAME="assembleFont()"><!-- --></A><H3>assembleFont</H3><PRE>protected void <B>assembleFont</B>() throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="createTableDirectory()"><!-- --></A><H3>createTableDirectory</H3><PRE>protected void <B>createTableDirectory</B>() throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A>, <A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE><DD><CODE><A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE></DL></DD></DL><HR><A NAME="readLoca()"><!-- --></A><H3>readLoca</H3><PRE>protected void <B>readLoca</B>() throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A>, <A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE><DD><CODE><A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE></DL></DD></DL><HR><A NAME="createNewGlyphTables()"><!-- --></A><H3>createNewGlyphTables</H3><PRE>protected void <B>createNewGlyphTables</B>() throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="locaTobytes()"><!-- --></A><H3>locaTobytes</H3><PRE>protected void <B>locaTobytes</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="flatGlyphs()"><!-- --></A><H3>flatGlyphs</H3><PRE>protected void <B>flatGlyphs</B>() throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A>, <A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE><DD><CODE><A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE></DL></DD></DL><HR><A NAME="checkGlyphComposite(int)"><!-- --></A><H3>checkGlyphComposite</H3><PRE>protected void <B>checkGlyphComposite</B>(int glyph) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="readStandardString(int)"><!-- --></A><H3>readStandardString</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>readStandardString</B>(int length) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Reads a <CODE>String</CODE> from the font file as bytes using the Cp1252 encoding.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>length</CODE> - the length of bytes to read<DT><B>Returns:</B><DD>the <CODE>String</CODE> read<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - the font file could not be read</DL></DD></DL><HR><A NAME="writeFontShort(int)"><!-- --></A><H3>writeFontShort</H3><PRE>protected void <B>writeFontShort</B>(int n)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="writeFontInt(int)"><!-- --></A><H3>writeFontInt</H3><PRE>protected void <B>writeFontInt</B>(int n)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="writeFontString(java.lang.String)"><!-- --></A><H3>writeFontString</H3><PRE>protected void <B>writeFontString</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> s)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="calculateChecksum(byte[])"><!-- --></A><H3>calculateChecksum</H3><PRE>protected int <B>calculateChecksum</B>(byte[] b)</PRE><DL><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>Hosted by <a href="http://www.hostbasket.com/">Hostbasket</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/lowagie/text/pdf/TrueTypeFont.WindowsMetrics.html" title="class in com.lowagie.text.pdf"><B>PREV CLASS</B></A> <A HREF="../../../../com/lowagie/text/pdf/TrueTypeFontUnicode.html" title="class in com.lowagie.text.pdf"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/lowagie/text/pdf/TrueTypeFontSubSet.html" target="_top"><B>FRAMES</B></A> <A HREF="TrueTypeFontSubSet.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -