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

📄 type1font.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DL><DD>The underline position.<P><DL></DL></DL><HR><A NAME="UnderlineThickness"><!-- --></A><H3>UnderlineThickness</H3><PRE>private int <B>UnderlineThickness</B></PRE><DL><DD>The underline thickness.<P><DL></DL></DL><HR><A NAME="EncodingScheme"><!-- --></A><H3>EncodingScheme</H3><PRE>private <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>EncodingScheme</B></PRE><DL><DD>The font's encoding name. This encoding is 'StandardEncoding' or  'AdobeStandardEncoding' for a font that can be totally encoded  according to the characters names. For all other names the  font is treated as symbolic.<P><DL></DL></DL><HR><A NAME="CapHeight"><!-- --></A><H3>CapHeight</H3><PRE>private int <B>CapHeight</B></PRE><DL><DD>A variable.<P><DL></DL></DL><HR><A NAME="XHeight"><!-- --></A><H3>XHeight</H3><PRE>private int <B>XHeight</B></PRE><DL><DD>A variable.<P><DL></DL></DL><HR><A NAME="Ascender"><!-- --></A><H3>Ascender</H3><PRE>private int <B>Ascender</B></PRE><DL><DD>A variable.<P><DL></DL></DL><HR><A NAME="Descender"><!-- --></A><H3>Descender</H3><PRE>private int <B>Descender</B></PRE><DL><DD>A variable.<P><DL></DL></DL><HR><A NAME="StdHW"><!-- --></A><H3>StdHW</H3><PRE>private int <B>StdHW</B></PRE><DL><DD>A variable.<P><DL></DL></DL><HR><A NAME="StdVW"><!-- --></A><H3>StdVW</H3><PRE>private int <B>StdVW</B></PRE><DL><DD>A variable.<P><DL></DL></DL><HR><A NAME="CharMetrics"><!-- --></A><H3>CharMetrics</H3><PRE>private <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>CharMetrics</B></PRE><DL><DD>Represents the section CharMetrics in the AFM file. Each  value of this array contains a <CODE>Object[4]</CODE> with an  Integer, Integer, String and int[]. This is the code, width, name and char bbox.  The key is the name of the char and also an Integer with the char number.<P><DL></DL></DL><HR><A NAME="KernPairs"><!-- --></A><H3>KernPairs</H3><PRE>private <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>KernPairs</B></PRE><DL><DD>Represents the section KernPairs in the AFM file. The key is  the name of the first character and the value is a <CODE>Object[]</CODE>  with 2 elements for each kern pair. Position 0 is the name of  the second character and position 1 is the kerning distance. This is  repeated for all the pairs.<P><DL></DL></DL><HR><A NAME="fileName"><!-- --></A><H3>fileName</H3><PRE>private <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>fileName</B></PRE><DL><DD>The file in use.<P><DL></DL></DL><HR><A NAME="builtinFont"><!-- --></A><H3>builtinFont</H3><PRE>private boolean <B>builtinFont</B></PRE><DL><DD><CODE>true</CODE> if this font is one of the 14 built in fonts.<P><DL></DL></DL><HR><A NAME="PFB_TYPES"><!-- --></A><H3>PFB_TYPES</H3><PRE>private static final int[] <B>PFB_TYPES</B></PRE><DL><DD>Types of records in a PFB file. ASCII is 1 and BINARY is 2.  They have to appear in the PFB file in this sequence.<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="Type1Font(java.lang.String, java.lang.String, boolean, byte[], byte[])"><!-- --></A><H3>Type1Font</H3><PRE><B>Type1Font</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;afmFile,          <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;enc,          boolean&nbsp;emb,          byte[]&nbsp;ttfAfm,          byte[]&nbsp;pfb)    throws <A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A>,           <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>Creates a new Type1 font.<P><DL><DT><B>Parameters:</B><DD><CODE>ttfAfm</CODE> - the AFM file if the input is made with a <CODE>byte</CODE> array<DD><CODE>pfb</CODE> - the PFB file if the input is made with a <CODE>byte</CODE> array<DD><CODE>afmFile</CODE> - the name of one of the 14 built-in fonts or the location of an AFM file. The file must end in '.afm'<DD><CODE>enc</CODE> - the encoding to be applied to this font<DD><CODE>emb</CODE> - true if the font is to be embedded in the PDF<DT><B>Throws:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE> - the AFM file is invalid<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 AFM file could not be read</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="getRawWidth(int, java.lang.String)"><!-- --></A><H3>getRawWidth</H3><PRE>int <B>getRawWidth</B>(int&nbsp;c,                <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;name)</PRE><DL><DD>Gets the width from the font according to the <CODE>name</CODE> or, if the <CODE>name</CODE> is null, meaning it is a symbolic font, the char <CODE>c</CODE>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getRawWidth(int, java.lang.String)">getRawWidth</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the char if the font is symbolic<DD><CODE>name</CODE> - the glyph name<DT><B>Returns:</B><DD>the width of the char</DL></DD></DL><HR><A NAME="getKerning(int, int)"><!-- --></A><H3>getKerning</H3><PRE>public int <B>getKerning</B>(int&nbsp;char1,                      int&nbsp;char2)</PRE><DL><DD>Gets the kerning between two Unicode characters. The characters are converted to names and this names are used to find the kerning pairs in the <CODE>HashMap</CODE> <CODE>KernPairs</CODE>.<P>

⌨️ 快捷键说明

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