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

📄 font.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<HR><A NAME="UNDEFINED"><!-- --></A><H3>UNDEFINED</H3><PRE>public static final int <B>UNDEFINED</B></PRE><DL><DD>the value of an undefined attribute.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.Font.UNDEFINED">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULTSIZE"><!-- --></A><H3>DEFAULTSIZE</H3><PRE>public static final int <B>DEFAULTSIZE</B></PRE><DL><DD>the value of the default size.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.Font.DEFAULTSIZE">Constant Field Values</A></DL></DL><HR><A NAME="family"><!-- --></A><H3>family</H3><PRE>private int <B>family</B></PRE><DL><DD>the value of the fontfamily.<P><DL></DL></DL><HR><A NAME="size"><!-- --></A><H3>size</H3><PRE>private float <B>size</B></PRE><DL><DD>the value of the fontsize.<P><DL></DL></DL><HR><A NAME="style"><!-- --></A><H3>style</H3><PRE>private int <B>style</B></PRE><DL><DD>the value of the style.<P><DL></DL></DL><HR><A NAME="color"><!-- --></A><H3>color</H3><PRE>private <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> <B>color</B></PRE><DL><DD>the value of the color.<P><DL></DL></DL><HR><A NAME="baseFont"><!-- --></A><H3>baseFont</H3><PRE>private <A HREF="../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A> <B>baseFont</B></PRE><DL><DD>the external font<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="Font(com.lowagie.text.Font)"><!-- --></A><H3>Font</H3><PRE>public <B>Font</B>(<A HREF="../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A>&nbsp;other)</PRE><DL><DD>Copy constructor of a Font<P><DL><DT><B>Parameters:</B><DD><CODE>other</CODE> - the font that has to be copied</DL></DL><HR><A NAME="Font(int, float, int, java.awt.Color)"><!-- --></A><H3>Font</H3><PRE>public <B>Font</B>(int&nbsp;family,            float&nbsp;size,            int&nbsp;style,            <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;color)</PRE><DL><DD>Constructs a Font.<P><DL><DT><B>Parameters:</B><DD><CODE>family</CODE> - the family to which this font belongs<DD><CODE>size</CODE> - the size of this font<DD><CODE>style</CODE> - the style of this font<DD><CODE>color</CODE> - the <CODE>Color</CODE> of this font.</DL></DL><HR><A NAME="Font(com.lowagie.text.pdf.BaseFont, float, int, java.awt.Color)"><!-- --></A><H3>Font</H3><PRE>public <B>Font</B>(<A HREF="../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A>&nbsp;bf,            float&nbsp;size,            int&nbsp;style,            <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;color)</PRE><DL><DD>Constructs a Font.<P><DL><DT><B>Parameters:</B><DD><CODE>bf</CODE> - the external font<DD><CODE>size</CODE> - the size of this font<DD><CODE>style</CODE> - the style of this font<DD><CODE>color</CODE> - the <CODE>Color</CODE> of this font.</DL></DL><HR><A NAME="Font(com.lowagie.text.pdf.BaseFont, float, int)"><!-- --></A><H3>Font</H3><PRE>public <B>Font</B>(<A HREF="../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A>&nbsp;bf,            float&nbsp;size,            int&nbsp;style)</PRE><DL><DD>Constructs a Font.<P><DL><DT><B>Parameters:</B><DD><CODE>bf</CODE> - the external font<DD><CODE>size</CODE> - the size of this font<DD><CODE>style</CODE> - the style of this font</DL></DL><HR><A NAME="Font(com.lowagie.text.pdf.BaseFont, float)"><!-- --></A><H3>Font</H3><PRE>public <B>Font</B>(<A HREF="../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A>&nbsp;bf,            float&nbsp;size)</PRE><DL><DD>Constructs a Font.<P><DL><DT><B>Parameters:</B><DD><CODE>bf</CODE> - the external font<DD><CODE>size</CODE> - the size of this font</DL></DL><HR><A NAME="Font(com.lowagie.text.pdf.BaseFont)"><!-- --></A><H3>Font</H3><PRE>public <B>Font</B>(<A HREF="../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A>&nbsp;bf)</PRE><DL><DD>Constructs a Font.<P><DL><DT><B>Parameters:</B><DD><CODE>bf</CODE> - the external font</DL></DL><HR><A NAME="Font(int, float, int)"><!-- --></A><H3>Font</H3><PRE>public <B>Font</B>(int&nbsp;family,            float&nbsp;size,            int&nbsp;style)</PRE><DL><DD>Constructs a Font.<P><DL><DT><B>Parameters:</B><DD><CODE>family</CODE> - the family to which this font belongs<DD><CODE>size</CODE> - the size of this font<DD><CODE>style</CODE> - the style of this font</DL></DL><HR><A NAME="Font(int, float)"><!-- --></A><H3>Font</H3><PRE>public <B>Font</B>(int&nbsp;family,            float&nbsp;size)</PRE><DL><DD>Constructs a Font.<P><DL><DT><B>Parameters:</B><DD><CODE>family</CODE> - the family to which this font belongs<DD><CODE>size</CODE> - the size of this font</DL></DL><HR><A NAME="Font(int)"><!-- --></A><H3>Font</H3><PRE>public <B>Font</B>(int&nbsp;family)</PRE><DL><DD>Constructs a Font.<P><DL><DT><B>Parameters:</B><DD><CODE>family</CODE> - the family to which this font belongs</DL></DL><HR><A NAME="Font()"><!-- --></A><H3>Font</H3><PRE>public <B>Font</B>()</PRE><DL><DD>Constructs a Font.<P></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="compareTo(java.lang.Object)"><!-- --></A><H3>compareTo</H3><PRE>public int <B>compareTo</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;object)</PRE><DL><DD>Compares this <CODE>Font</CODE> with another<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html?is-external=true#compareTo(T)" title="class or interface in java.lang">compareTo</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>object</CODE> - the other <CODE>Font</CODE><DT><B>Returns:</B><DD>a value</DL></DD></DL><HR><A NAME="getFamily()"><!-- --></A><H3>getFamily</H3><PRE>public int <B>getFamily</B>()</PRE><DL><DD>Gets the family of this font.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the value of the family</DL></DD></DL><HR><A NAME="getFamilyname()"><!-- --></A><H3>getFamilyname</H3><PRE>public <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>getFamilyname</B>()</PRE><DL><DD>Gets the familyname as a String.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the familyname</DL></DD></DL><HR><A NAME="setFamily(java.lang.String)"><!-- --></A><H3>setFamily</H3><PRE>public void <B>setFamily</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;family)</PRE><DL><DD>Sets the family using a <CODE>String</CODE> ("Courier", "Helvetica", "Times New Roman", "Symbol" or "ZapfDingbats").<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>family</CODE> - A <CODE>String</CODE> representing a certain font-family.</DL></DD></DL><HR><A NAME="getFamilyIndex(java.lang.String)"><!-- --></A><H3>getFamilyIndex</H3><PRE>public static int <B>getFamilyIndex</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;family)</PRE><DL><DD>Translates a <CODE>String</CODE> -value of a certain family into the index that is used for this family in this class.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>family</CODE> - A <CODE>String</CODE> representing a certain font-family<DT><B>Returns:</B><DD>the corresponding index</DL></DD></DL><HR><A NAME="getSize()"><!-- --></A><H3>getSize</H3><PRE>public float <B>getSize</B>()</PRE><DL><DD>Gets the size of this font.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a size</DL></DD></DL><HR><A NAME="getCalculatedSize()"><!-- --></A><H3>getCalculatedSize</H3><PRE>public float <B>getCalculatedSize</B>()</PRE><DL><DD>Gets the size that can be used with the calculated <CODE>BaseFont </CODE>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the size that can be used with the calculated <CODE>BaseFont         </CODE></DL></DD></DL><HR><A NAME="getCalculatedLeading(float)"><!-- --></A><H3>getCalculatedLeading</H3><PRE>public float <B>getCalculatedLeading</B>(float&nbsp;linespacing)</PRE><DL><DD>Gets the leading that can be used with this font.<P><DD><DL></DL></DD>

⌨️ 快捷键说明

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