⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cfffontsubset.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/LinkedList.html?is-external=true" title="class or interface in java.util">LinkedList</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#OutputList">OutputList</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The linked list for generating the new font stream</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) static&nbsp;<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>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#SubrsEscapeFuncs">SubrsEscapeFuncs</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Strings in this array represent Type1/Type2 escape operator names</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) static&nbsp;<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>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#SubrsFunctions">SubrsFunctions</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Strings in this array represent Type1/Type2 operator names</TD></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_com.lowagie.text.pdf.CFFFont"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Fields inherited from class com.lowagie.text.pdf.<A HREF="../../../../com/lowagie/text/pdf/CFFFont.html" title="class in com.lowagie.text.pdf">CFFFont</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#arg_count">arg_count</A>, <A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#args">args</A>, <A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#buf">buf</A>, <A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#fonts">fonts</A>, <A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#gsubrIndexOffset">gsubrIndexOffset</A>, <A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#gsubrOffsets">gsubrOffsets</A>, <A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#key">key</A>, <A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#nameIndexOffset">nameIndexOffset</A>, <A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#nameOffsets">nameOffsets</A>, <A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#nextIndexOffset">nextIndexOffset</A>, <A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#operatorNames">operatorNames</A>, <A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#standardStrings">standardStrings</A>, <A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#stringIndexOffset">stringIndexOffset</A>, <A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#stringOffsets">stringOffsets</A>, <A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#topdictIndexOffset">topdictIndexOffset</A>, <A HREF="../../../../com/lowagie/text/pdf/CFFFont.html#topdictOffsets">topdictOffsets</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#CFFFontSubset(com.lowagie.text.pdf.RandomAccessFileOrArray, java.util.HashMap)">CFFFontSubset</A></B>(<A HREF="../../../../com/lowagie/text/pdf/RandomAccessFileOrArray.html" title="class in com.lowagie.text.pdf">RandomAccessFileOrArray</A>&nbsp;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>&nbsp;GlyphsUsed)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C'tor for CFFFontSubset</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#AssembleIndex(int[], byte[])">AssembleIndex</A></B>(int[]&nbsp;NewOffsets,              byte[]&nbsp;NewObjects)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function creates the new index, inserting the count,offsetsize,offset array and object array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#BuildFDArrayUsed(int)">BuildFDArrayUsed</A></B>(int&nbsp;Font)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function reads the FDSelect and builds the FDArrayUsed HashMap According to the glyphs used</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#BuildFDSubrsOffsets(int, int)">BuildFDSubrsOffsets</A></B>(int&nbsp;Font,                    int&nbsp;FD)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The function finds for the FD array processed the local subr offset and its  offset array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#BuildGSubrsUsed(int)">BuildGSubrsUsed</A></B>(int&nbsp;Font)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function scans the Glsubr used ArrayList to find recursive calls  to Gsubrs and adds to Hashmap & ArrayList</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#BuildIndexHeader(int, int, int)">BuildIndexHeader</A></B>(int&nbsp;Count,                 int&nbsp;Offsize,                 int&nbsp;First)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function Build the header of an index</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#BuildNewCharString(int)">BuildNewCharString</A></B>(int&nbsp;FontIndex)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function uses BuildNewIndex to create the new index of the subset charstrings</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#BuildNewFile(int)">BuildNewFile</A></B>(int&nbsp;Font)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The function builds the new output stream according to the subset process</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#BuildNewIndex(int[], java.util.HashMap)">BuildNewIndex</A></B>(int[]&nbsp;Offsets,              <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>&nbsp;Used)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function builds the new offset array, object array and assembles the index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#BuildNewLGSubrs(int)">BuildNewLGSubrs</A></B>(int&nbsp;Font)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function builds the new local & global subsrs indices.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#BuildSubrUsed(int, int, int, int[], java.util.HashMap, java.util.ArrayList)">BuildSubrUsed</A></B>(int&nbsp;Font,              int&nbsp;FD,              int&nbsp;SubrOffset,              int[]&nbsp;SubrsOffsets,              <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>&nbsp;hSubr,              <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A>&nbsp;lSubr)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function uses ReadAsubr on the glyph used to build the LSubr & Gsubr HashMap.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#CalcBias(int, int)">CalcBias</A></B>(int&nbsp;Offset,         int&nbsp;Font)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function calcs bias according to the CharString type and the count of the subrs</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#CalcHints(int, int, int, int, int[])">CalcHints</A></B>(int&nbsp;begin,          int&nbsp;end,          int&nbsp;LBias,          int&nbsp;GBias,          int[]&nbsp;LSubrsOffsets)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The function reads the subroutine and returns the number of the hint in it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#CalcSubrOffsetSize(int, int)">CalcSubrOffsetSize</A></B>(int&nbsp;Offset,                   int&nbsp;Size)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculates how many byte it took to write the offset for the subrs in a specific private dict.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#CopyHeader()">CopyHeader</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function Copies the header from the original fileto the output list</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#CountCharset(int, int)">CountCharset</A></B>(int&nbsp;Offset,             int&nbsp;NumofGlyphs)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculates the length of the charset according to its format</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#countEntireIndexRange(int)">countEntireIndexRange</A></B>(int&nbsp;indexOffset)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function computes the size of an index</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#CountRange(int, int)">CountRange</A></B>(int&nbsp;NumofGlyphs,           int&nbsp;Type)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function calculates the number of ranges in the Charset</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#CreateCharset(com.lowagie.text.pdf.CFFFont.OffsetItem, int)">CreateCharset</A></B>(<A HREF="../../../../com/lowagie/text/pdf/CFFFont.OffsetItem.html" title="class in com.lowagie.text.pdf">CFFFont.OffsetItem</A>&nbsp;charsetRef,              int&nbsp;nglyphs)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function creates new CharSet for non-CID fonts.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#CreateFDArray(com.lowagie.text.pdf.CFFFont.OffsetItem, com.lowagie.text.pdf.CFFFont.OffsetItem, int)">CreateFDArray</A></B>(<A HREF="../../../../com/lowagie/text/pdf/CFFFont.OffsetItem.html" title="class in com.lowagie.text.pdf">CFFFont.OffsetItem</A>&nbsp;fdarrayRef,              <A HREF="../../../../com/lowagie/text/pdf/CFFFont.OffsetItem.html" title="class in com.lowagie.text.pdf">CFFFont.OffsetItem</A>&nbsp;privateRef,              int&nbsp;Font)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function creates new FDArray for non-CID fonts.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#CreateFDSelect(com.lowagie.text.pdf.CFFFont.OffsetItem, int)">CreateFDSelect</A></B>(<A HREF="../../../../com/lowagie/text/pdf/CFFFont.OffsetItem.html" title="class in com.lowagie.text.pdf">CFFFont.OffsetItem</A>&nbsp;fdselectRef,               int&nbsp;nglyphs)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function creates new FDSelect for non-CID fonts.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#CreateKeys(com.lowagie.text.pdf.CFFFont.OffsetItem, com.lowagie.text.pdf.CFFFont.OffsetItem, com.lowagie.text.pdf.CFFFont.OffsetItem, com.lowagie.text.pdf.CFFFont.OffsetItem)">CreateKeys</A></B>(<A HREF="../../../../com/lowagie/text/pdf/CFFFont.OffsetItem.html" title="class in com.lowagie.text.pdf">CFFFont.OffsetItem</A>&nbsp;fdarrayRef,           <A HREF="../../../../com/lowagie/text/pdf/CFFFont.OffsetItem.html" title="class in com.lowagie.text.pdf">CFFFont.OffsetItem</A>&nbsp;fdselectRef,           <A HREF="../../../../com/lowagie/text/pdf/CFFFont.OffsetItem.html" title="class in com.lowagie.text.pdf">CFFFont.OffsetItem</A>&nbsp;charsetRef,           <A HREF="../../../../com/lowagie/text/pdf/CFFFont.OffsetItem.html" title="class in com.lowagie.text.pdf">CFFFont.OffsetItem</A>&nbsp;charstringsRef)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function adds the keys into the TopDict</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/CFFFontSubset.html#CreateNewStringIndex(int)">CreateNewStringIndex</A></B>(int&nbsp;Font)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function takes the original string item and adds the new strings to accommodate the CID rules</TD>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -