📄 font.html
字号:
<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> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#compareTo(java.lang.Object)">compareTo</A></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> object)</CODE><BR> Compares this <CODE>Font</CODE> with another</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#difference(com.lowagie.text.Font)">difference</A></B>(<A HREF="../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A> font)</CODE><BR> Replaces the attributes that are equal to <VAR>null</VAR> with the attributes of a given font.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#getBaseFont()">getBaseFont</A></B>()</CODE><BR> Gets the <CODE>BaseFont</CODE> inside this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#getCalculatedBaseFont(boolean)">getCalculatedBaseFont</A></B>(boolean specialEncoding)</CODE><BR> Gets the <CODE>BaseFont</CODE> this class represents.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#getCalculatedLeading(float)">getCalculatedLeading</A></B>(float linespacing)</CODE><BR> Gets the leading that can be used with this font.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#getCalculatedSize()">getCalculatedSize</A></B>()</CODE><BR> Gets the size that can be used with the calculated <CODE>BaseFont </CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#getCalculatedStyle()">getCalculatedStyle</A></B>()</CODE><BR> Gets the style that can be used with the calculated <CODE>BaseFont </CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#getColor()">getColor</A></B>()</CODE><BR> Gets the color of this font.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#getFamily()">getFamily</A></B>()</CODE><BR> Gets the family of this font.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#getFamilyIndex(java.lang.String)">getFamilyIndex</A></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> family)</CODE><BR> Translates a <CODE>String</CODE> -value of a certain family into the index that is used for this family in this class.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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/Font.html#getFamilyname()">getFamilyname</A></B>()</CODE><BR> Gets the familyname as a String.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#getSize()">getSize</A></B>()</CODE><BR> Gets the size of this font.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#getStyle()">getStyle</A></B>()</CODE><BR> Gets the style of this font.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#getStyleValue(java.lang.String)">getStyleValue</A></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> style)</CODE><BR> Translates a <CODE>String</CODE> -value of a certain style into the index value is used for this style in this class.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#isBold()">isBold</A></B>()</CODE><BR> checks if this font is Bold.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#isItalic()">isItalic</A></B>()</CODE><BR> checks if this font is Bold.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#isStandardFont()">isStandardFont</A></B>()</CODE><BR> Checks if the properties of this font are undefined or null.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#isStrikethru()">isStrikethru</A></B>()</CODE><BR> checks if the style of this font is STRIKETHRU.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#isUnderlined()">isUnderlined</A></B>()</CODE><BR> checks if this font is underlined.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#setColor(java.awt.Color)">setColor</A></B>(<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> color)</CODE><BR> Sets the color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#setColor(int, int, int)">setColor</A></B>(int red, int green, int blue)</CODE><BR> Sets the color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#setFamily(java.lang.String)">setFamily</A></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> family)</CODE><BR> Sets the family using a <CODE>String</CODE> ("Courier", "Helvetica", "Times New Roman", "Symbol" or "ZapfDingbats").</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#setSize(float)">setSize</A></B>(float size)</CODE><BR> Sets the size.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#setStyle(int)">setStyle</A></B>(int style)</CODE><BR> Sets the style.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#setStyle(java.lang.String)">setStyle</A></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> style)</CODE><BR> Sets the style using a <CODE>String</CODE> containing one of more of the following values: normal, bold, italic, underline, strike.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<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></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="COURIER"><!-- --></A><H3>COURIER</H3><PRE>public static final int <B>COURIER</B></PRE><DL><DD>a possible value of a font family.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.Font.COURIER">Constant Field Values</A></DL></DL><HR><A NAME="HELVETICA"><!-- --></A><H3>HELVETICA</H3><PRE>public static final int <B>HELVETICA</B></PRE><DL><DD>a possible value of a font family.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.Font.HELVETICA">Constant Field Values</A></DL></DL><HR><A NAME="TIMES_ROMAN"><!-- --></A><H3>TIMES_ROMAN</H3><PRE>public static final int <B>TIMES_ROMAN</B></PRE><DL><DD>a possible value of a font family.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.Font.TIMES_ROMAN">Constant Field Values</A></DL></DL><HR><A NAME="SYMBOL"><!-- --></A><H3>SYMBOL</H3><PRE>public static final int <B>SYMBOL</B></PRE><DL><DD>a possible value of a font family.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.Font.SYMBOL">Constant Field Values</A></DL></DL><HR><A NAME="ZAPFDINGBATS"><!-- --></A><H3>ZAPFDINGBATS</H3><PRE>public static final int <B>ZAPFDINGBATS</B></PRE><DL><DD>a possible value of a font family.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.Font.ZAPFDINGBATS">Constant Field Values</A></DL></DL><HR><A NAME="NORMAL"><!-- --></A><H3>NORMAL</H3><PRE>public static final int <B>NORMAL</B></PRE><DL><DD>this is a possible style.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.Font.NORMAL">Constant Field Values</A></DL></DL><HR><A NAME="BOLD"><!-- --></A><H3>BOLD</H3><PRE>public static final int <B>BOLD</B></PRE><DL><DD>this is a possible style.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.Font.BOLD">Constant Field Values</A></DL></DL><HR><A NAME="ITALIC"><!-- --></A><H3>ITALIC</H3><PRE>public static final int <B>ITALIC</B></PRE><DL><DD>this is a possible style.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.Font.ITALIC">Constant Field Values</A></DL></DL><HR><A NAME="UNDERLINE"><!-- --></A><H3>UNDERLINE</H3><PRE>public static final int <B>UNDERLINE</B></PRE><DL><DD>this is a possible style.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.Font.UNDERLINE">Constant Field Values</A></DL></DL><HR><A NAME="STRIKETHRU"><!-- --></A><H3>STRIKETHRU</H3><PRE>public static final int <B>STRIKETHRU</B></PRE><DL><DD>this is a possible style.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.Font.STRIKETHRU">Constant Field Values</A></DL></DL><HR><A NAME="BOLDITALIC"><!-- --></A><H3>BOLDITALIC</H3><PRE>public static final int <B>BOLDITALIC</B></PRE><DL><DD>this is a possible style.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.Font.BOLDITALIC">Constant Field Values</A></DL></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -