📄 rtffont.html
字号:
<DL></DL></DL><HR><A NAME="FONT_EMBOSSED"><!-- --></A><H3>FONT_EMBOSSED</H3><PRE>private static final byte[] <B>FONT_EMBOSSED</B></PRE><DL><DD>Constant for the embossed flag<P><DL></DL></DL><HR><A NAME="FONT_ENGRAVED"><!-- --></A><H3>FONT_ENGRAVED</H3><PRE>private static final byte[] <B>FONT_ENGRAVED</B></PRE><DL><DD>Constant for the engraved flag<P><DL></DL></DL><HR><A NAME="FONT_HIDDEN"><!-- --></A><H3>FONT_HIDDEN</H3><PRE>private static final byte[] <B>FONT_HIDDEN</B></PRE><DL><DD>Constant for hidden text flag<P><DL></DL></DL><HR><A NAME="STYLE_NONE"><!-- --></A><H3>STYLE_NONE</H3><PRE>public static final int <B>STYLE_NONE</B></PRE><DL><DD>Constant for a plain font<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.rtf.style.RtfFont.STYLE_NONE">Constant Field Values</A></DL></DL><HR><A NAME="STYLE_BOLD"><!-- --></A><H3>STYLE_BOLD</H3><PRE>public static final int <B>STYLE_BOLD</B></PRE><DL><DD>Constant for a bold font<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.rtf.style.RtfFont.STYLE_BOLD">Constant Field Values</A></DL></DL><HR><A NAME="STYLE_ITALIC"><!-- --></A><H3>STYLE_ITALIC</H3><PRE>public static final int <B>STYLE_ITALIC</B></PRE><DL><DD>Constant for an italic font<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.rtf.style.RtfFont.STYLE_ITALIC">Constant Field Values</A></DL></DL><HR><A NAME="STYLE_UNDERLINE"><!-- --></A><H3>STYLE_UNDERLINE</H3><PRE>public static final int <B>STYLE_UNDERLINE</B></PRE><DL><DD>Constant for an underlined font<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.rtf.style.RtfFont.STYLE_UNDERLINE">Constant Field Values</A></DL></DL><HR><A NAME="STYLE_STRIKETHROUGH"><!-- --></A><H3>STYLE_STRIKETHROUGH</H3><PRE>public static final int <B>STYLE_STRIKETHROUGH</B></PRE><DL><DD>Constant for a strikethrough font<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.rtf.style.RtfFont.STYLE_STRIKETHROUGH">Constant Field Values</A></DL></DL><HR><A NAME="STYLE_DOUBLE_STRIKETHROUGH"><!-- --></A><H3>STYLE_DOUBLE_STRIKETHROUGH</H3><PRE>public static final int <B>STYLE_DOUBLE_STRIKETHROUGH</B></PRE><DL><DD>Constant for a double strikethrough font<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.rtf.style.RtfFont.STYLE_DOUBLE_STRIKETHROUGH">Constant Field Values</A></DL></DL><HR><A NAME="STYLE_SHADOW"><!-- --></A><H3>STYLE_SHADOW</H3><PRE>public static final int <B>STYLE_SHADOW</B></PRE><DL><DD>Constant for a shadowed font<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.rtf.style.RtfFont.STYLE_SHADOW">Constant Field Values</A></DL></DL><HR><A NAME="STYLE_OUTLINE"><!-- --></A><H3>STYLE_OUTLINE</H3><PRE>public static final int <B>STYLE_OUTLINE</B></PRE><DL><DD>Constant for an outlined font<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.rtf.style.RtfFont.STYLE_OUTLINE">Constant Field Values</A></DL></DL><HR><A NAME="STYLE_EMBOSSED"><!-- --></A><H3>STYLE_EMBOSSED</H3><PRE>public static final int <B>STYLE_EMBOSSED</B></PRE><DL><DD>Constant for an embossed font<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.rtf.style.RtfFont.STYLE_EMBOSSED">Constant Field Values</A></DL></DL><HR><A NAME="STYLE_ENGRAVED"><!-- --></A><H3>STYLE_ENGRAVED</H3><PRE>public static final int <B>STYLE_ENGRAVED</B></PRE><DL><DD>Constant for an engraved font<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.rtf.style.RtfFont.STYLE_ENGRAVED">Constant Field Values</A></DL></DL><HR><A NAME="STYLE_HIDDEN"><!-- --></A><H3>STYLE_HIDDEN</H3><PRE>public static final int <B>STYLE_HIDDEN</B></PRE><DL><DD>Constant for a font that hides the actual text.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.rtf.style.RtfFont.STYLE_HIDDEN">Constant Field Values</A></DL></DL><HR><A NAME="fontName"><!-- --></A><H3>fontName</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>fontName</B></PRE><DL><DD>The font name. Defaults to "Times New Roman"<P><DL></DL></DL><HR><A NAME="fontSize"><!-- --></A><H3>fontSize</H3><PRE>private int <B>fontSize</B></PRE><DL><DD>The font size. Defaults to 10<P><DL></DL></DL><HR><A NAME="fontStyle"><!-- --></A><H3>fontStyle</H3><PRE>private int <B>fontStyle</B></PRE><DL><DD>The font style. Defaults to STYLE_NONE<P><DL></DL></DL><HR><A NAME="fontNumber"><!-- --></A><H3>fontNumber</H3><PRE>private int <B>fontNumber</B></PRE><DL><DD>The number of this font<P><DL></DL></DL><HR><A NAME="color"><!-- --></A><H3>color</H3><PRE>private <A HREF="../../../../../com/lowagie/text/rtf/style/RtfColor.html" title="class in com.lowagie.text.rtf.style">RtfColor</A> <B>color</B></PRE><DL><DD>The color of this font<P><DL></DL></DL><HR><A NAME="charset"><!-- --></A><H3>charset</H3><PRE>private int <B>charset</B></PRE><DL><DD>The character set to use for this font<P><DL></DL></DL><HR><A NAME="document"><!-- --></A><H3>document</H3><PRE>protected <A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html" title="class in com.lowagie.text.rtf.document">RtfDocument</A> <B>document</B></PRE><DL><DD>The RtfDocument this RtfFont belongs to.<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="RtfFont(java.lang.String)"><!-- --></A><H3>RtfFont</H3><PRE>public <B>RtfFont</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> fontName)</PRE><DL><DD>Constructs a RtfFont with the given font name and all other properties at their default values.<P><DL><DT><B>Parameters:</B><DD><CODE>fontName</CODE> - The font name to use</DL></DL><HR><A NAME="RtfFont(java.lang.String, float)"><!-- --></A><H3>RtfFont</H3><PRE>public <B>RtfFont</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> fontName, float size)</PRE><DL><DD>Constructs a RtfFont with the given font name and font size and all other properties at their default values.<P><DL><DT><B>Parameters:</B><DD><CODE>fontName</CODE> - The font name to use<DD><CODE>size</CODE> - The font size to use</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -