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

📄 cfffontsubset.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<PRE><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> <B>hGSubrsUsed</B></PRE><DL><DD>A HashMap for keeping the Global subroutines used in the font<P><DL></DL></DL><HR><A NAME="lGSubrsUsed"><!-- --></A><H3>lGSubrsUsed</H3><PRE><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> <B>lGSubrsUsed</B></PRE><DL><DD>The Global SubroutinesUsed HashMaps as ArrayLists<P><DL></DL></DL><HR><A NAME="hSubrsUsedNonCID"><!-- --></A><H3>hSubrsUsedNonCID</H3><PRE><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> <B>hSubrsUsedNonCID</B></PRE><DL><DD>A HashMap for keeping the subroutines used in a non-cid font<P><DL></DL></DL><HR><A NAME="lSubrsUsedNonCID"><!-- --></A><H3>lSubrsUsedNonCID</H3><PRE><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> <B>lSubrsUsedNonCID</B></PRE><DL><DD>The SubroutinesUsed HashMap as ArrayList<P><DL></DL></DL><HR><A NAME="NewLSubrsIndex"><!-- --></A><H3>NewLSubrsIndex</H3><PRE>byte[][] <B>NewLSubrsIndex</B></PRE><DL><DD>An array of the new Indexes for the local Subr. One index for each FontDict<P><DL></DL></DL><HR><A NAME="NewSubrsIndexNonCID"><!-- --></A><H3>NewSubrsIndexNonCID</H3><PRE>byte[] <B>NewSubrsIndexNonCID</B></PRE><DL><DD>The new subroutines index for a non-cid font<P><DL></DL></DL><HR><A NAME="NewGSubrsIndex"><!-- --></A><H3>NewGSubrsIndex</H3><PRE>byte[] <B>NewGSubrsIndex</B></PRE><DL><DD>The new global subroutines index of the font<P><DL></DL></DL><HR><A NAME="NewCharStringsIndex"><!-- --></A><H3>NewCharStringsIndex</H3><PRE>byte[] <B>NewCharStringsIndex</B></PRE><DL><DD>The new CharString of the font<P><DL></DL></DL><HR><A NAME="GBias"><!-- --></A><H3>GBias</H3><PRE>int <B>GBias</B></PRE><DL><DD>The bias for the global subroutines<P><DL></DL></DL><HR><A NAME="OutputList"><!-- --></A><H3>OutputList</H3><PRE><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> <B>OutputList</B></PRE><DL><DD>The linked list for generating the new font stream<P><DL></DL></DL><HR><A NAME="NumOfHints"><!-- --></A><H3>NumOfHints</H3><PRE>int <B>NumOfHints</B></PRE><DL><DD>Number of arguments to the stem operators in a subroutine calculated recursively<P><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="CFFFontSubset(com.lowagie.text.pdf.RandomAccessFileOrArray, java.util.HashMap)"><!-- --></A><H3>CFFFontSubset</H3><PRE>public <B>CFFFontSubset</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)</PRE><DL><DD>C'tor for CFFFontSubset<P><DL><DT><B>Parameters:</B><DD><CODE>rf</CODE> - - The font file<DD><CODE>GlyphsUsed</CODE> - - a HashMap that contains the glyph used in the subset</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="CountCharset(int, int)"><!-- --></A><H3>CountCharset</H3><PRE>int <B>CountCharset</B>(int&nbsp;Offset,                 int&nbsp;NumofGlyphs)</PRE><DL><DD>Calculates the length of the charset according to its format<P><DD><DL><DT><B>Parameters:</B><DD><CODE>Offset</CODE> - The Charset Offset<DD><CODE>NumofGlyphs</CODE> - Number of glyphs in the font<DT><B>Returns:</B><DD>the length of the Charset</DL></DD></DL><HR><A NAME="CountRange(int, int)"><!-- --></A><H3>CountRange</H3><PRE>int <B>CountRange</B>(int&nbsp;NumofGlyphs,               int&nbsp;Type)</PRE><DL><DD>Function calculates the number of ranges in the Charset<P><DD><DL><DT><B>Parameters:</B><DD><CODE>NumofGlyphs</CODE> - The number of glyphs in the font<DD><CODE>Type</CODE> - The format of the Charset<DT><B>Returns:</B><DD>The number of ranges in the Charset data structure</DL></DD></DL><HR><A NAME="readFDSelect(int)"><!-- --></A><H3>readFDSelect</H3><PRE>protected void <B>readFDSelect</B>(int&nbsp;Font)</PRE><DL><DD>Read the FDSelect of the font and compute the array and its length<P><DD><DL><DT><B>Parameters:</B><DD><CODE>Font</CODE> - The index of the font being processed</DL></DD></DL><HR><A NAME="BuildFDArrayUsed(int)"><!-- --></A><H3>BuildFDArrayUsed</H3><PRE>protected void <B>BuildFDArrayUsed</B>(int&nbsp;Font)</PRE><DL><DD>Function reads the FDSelect and builds the FDArrayUsed HashMap According to the glyphs used<P><DD><DL><DT><B>Parameters:</B><DD><CODE>Font</CODE> - the Number of font being processed</DL></DD></DL><HR><A NAME="ReadFDArray(int)"><!-- --></A><H3>ReadFDArray</H3><PRE>protected void <B>ReadFDArray</B>(int&nbsp;Font)</PRE><DL><DD>Read the FDArray count, offsize and Offset array<P><DD><DL><DT><B>Parameters:</B><DD><CODE>Font</CODE> - </DL></DD></DL><HR><A NAME="Process(java.lang.String)"><!-- --></A><H3>Process</H3><PRE>public byte[] <B>Process</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>&nbsp;fontName)               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>The Process function extracts one font out of the CFF file and returns a subset version of the original.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fontName</CODE> - - The name of the font to be taken out of the CFF<DT><B>Returns:</B><DD>The new font stream<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="CalcBias(int, int)"><!-- --></A><H3>CalcBias</H3><PRE>protected int <B>CalcBias</B>(int&nbsp;Offset,                       int&nbsp;Font)</PRE><DL><DD>Function calcs bias according to the CharString type and the count of the subrs<P><DD><DL><DT><B>Parameters:</B><DD><CODE>Offset</CODE> - The offset to the relevant subrs index<DD><CODE>Font</CODE> - the font<DT><B>Returns:</B><DD>The calculated Bias</DL></DD></DL><HR><A NAME="BuildNewCharString(int)"><!-- --></A><H3>BuildNewCharString</H3><PRE>

⌨️ 快捷键说明

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