📄 font.html
字号:
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> float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/lowagie/text/Font.html#leading(float)">leading</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> 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.3/docs/api/java/awt/Color.html">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.3/docs/api/java/lang/String.html">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(java.lang.String)">setStyle</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">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>
<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#size()">size</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#style()">style</A></B>()</CODE>
<BR>
Gets the style of this font.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()">toString</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</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_NEW_ROMAN"><!-- --></A><H3>
TIMES_NEW_ROMAN</H3>
<PRE>
public static final int <B>TIMES_NEW_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_NEW_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>
<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.3/docs/api/java/awt/Color.html">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">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" 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="Font(int, float, int, java.awt.Color)"><!-- --></A><H3>
Font</H3>
<PRE>
public <B>Font</B>(int family, float size, int style, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/Color.html">Color</A> color)</PRE>
<DL>
<DD>Constructs a Font.
<P>
<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>
<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">BaseFont</A> bf, float size, int style, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/Color.html">Color</A> color)</PRE>
<DL>
<DD>Constructs a Font.
<P>
<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>
<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">BaseFont</A> bf, float size, int style)</PRE>
<DL>
<DD>Constructs a Font.
<P>
<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>
<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">BaseFont</A> bf, float size)</PRE>
<DL>
<DD>Constructs a Font.
<P>
<DT><B>Parameters:</B><DD><CODE>bf</CODE> - the external font<DD><CODE>size</CODE> - the size of this font</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">BaseFont</A> bf)</PRE>
<DL>
<DD>Constructs a Font.
<P>
<DT><B>Parameters:</B><DD><CODE>bf</CODE> - the external font</DL>
<HR>
<A NAME="Font(int, float, int)"><!-- --></A><H3>
Font</H3>
<PRE>
public <B>Font</B>(int family, float size, int style)</PRE>
<DL>
<DD>Constructs a Font.
<P>
<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>
<HR>
<A NAME="Font(int, float)"><!-- --></A><H3>
Font</H3>
<PRE>
public <B>Font</B>(int family, float size)</PRE>
<DL>
<DD>Constructs a Font.
<P>
<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>
<HR>
<A NAME="Font(int)"><!-- --></A><H3>
Font</H3>
<PRE>
public <B>Font</B>(int family)</PRE>
<DL>
<DD>Constructs a Font.
<P>
<DT><B>Parameters:</B><DD><CODE>family</CODE> - the family to which this font belongs</DL>
<HR>
<A NAME="Font()"><!-- --></A><H3>
Font</H3>
<PRE>
public <B>Font</B>()</PRE>
<DL>
<DD>Constructs a Font.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -