?? type1font.html
字號:
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="IsFixedPitch"><!-- --></A><H3>
IsFixedPitch</H3>
<PRE>
private boolean <B>IsFixedPitch</B></PRE>
<DL>
<DD><CODE>true</CODE> if all the characters have the same width.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="CharacterSet"><!-- --></A><H3>
CharacterSet</H3>
<PRE>
private <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>CharacterSet</B></PRE>
<DL>
<DD>The character set of the font.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="llx"><!-- --></A><H3>
llx</H3>
<PRE>
private int <B>llx</B></PRE>
<DL>
<DD>The llx of the FontBox.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="lly"><!-- --></A><H3>
lly</H3>
<PRE>
private int <B>lly</B></PRE>
<DL>
<DD>The lly of the FontBox.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="urx"><!-- --></A><H3>
urx</H3>
<PRE>
private int <B>urx</B></PRE>
<DL>
<DD>The lurx of the FontBox.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="ury"><!-- --></A><H3>
ury</H3>
<PRE>
private int <B>ury</B></PRE>
<DL>
<DD>The ury of the FontBox.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="UnderlinePosition"><!-- --></A><H3>
UnderlinePosition</H3>
<PRE>
private int <B>UnderlinePosition</B></PRE>
<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.3/docs/api/java/lang/String.html">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.3/docs/api/java/util/ArrayList.html">ArrayList</A> <B>CharMetrics</B></PRE>
<DL>
<DD>Represents the section CharMetrics in the AFM file. Each element of this array contains a <CODE>Object[3]</CODE> with an Integer, Integer and String. This is the code, width and name.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="KernPairs"><!-- --></A><H3>
KernPairs</H3>
<PRE>
private <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/HashMap.html">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.3/docs/api/java/lang/String.html">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="pfbTypes"><!-- --></A><H3>
pfbTypes</H3>
<PRE>
private static final int[] <B>pfbTypes</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" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</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.3/docs/api/java/lang/String.html">String</A> afmFile, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> enc, boolean emb, byte[] ttfAfm, byte[] pfb) throws <A HREF="../../../../com/lowagie/text/DocumentException.html">DocumentException</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></PRE>
<DL>
<DD>Creates a new Type1 font.
<P>
<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">DocumentException</A></CODE> - the AFM file is invalid<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - the AFM file could not be read</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -