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

📄 rtffont.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</DL><HR><A NAME="RtfFont(java.lang.String, float, int)"><!-- --></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>&nbsp;fontName,               float&nbsp;size,               int&nbsp;style)</PRE><DL><DD>Constructs a RtfFont with the given font name, font size and font style and the default color.<P><DL><DT><B>Parameters:</B><DD><CODE>fontName</CODE> - The font name to use<DD><CODE>size</CODE> - The font size to use<DD><CODE>style</CODE> - The font style to use</DL></DL><HR><A NAME="RtfFont(java.lang.String, float, int, java.awt.Color)"><!-- --></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>&nbsp;fontName,               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 RtfFont with the given font name, font size, font style and color.<P><DL><DT><B>Parameters:</B><DD><CODE>fontName</CODE> - The font name to use<DD><CODE>size</CODE> - the font size to use<DD><CODE>style</CODE> - The font style to use<DD><CODE>color</CODE> - The font color to use</DL></DL><HR><A NAME="RtfFont(java.lang.String, float, int, java.awt.Color, int)"><!-- --></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>&nbsp;fontName,               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,               int&nbsp;charset)</PRE><DL><DD>Constructs a RtfFont with the given font name, font size, font style, color and charset. This can be used when generating non latin-1 text.<P><DL><DT><B>Parameters:</B><DD><CODE>fontName</CODE> - The font name to use<DD><CODE>size</CODE> - the font size to use<DD><CODE>style</CODE> - The font style to use<DD><CODE>color</CODE> - The font color to use<DD><CODE>charset</CODE> - The charset of the font content</DL></DL><HR><A NAME="RtfFont(com.lowagie.text.rtf.document.RtfDocument, int)"><!-- --></A><H3>RtfFont</H3><PRE>protected <B>RtfFont</B>(<A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html" title="class in com.lowagie.text.rtf.document">RtfDocument</A>&nbsp;doc,                  int&nbsp;fontNumber)</PRE><DL><DD>Special constructor for the default font<P><DL><DT><B>Parameters:</B><DD><CODE>doc</CODE> - The RtfDocument this font appears in<DD><CODE>fontNumber</CODE> - The id of this font</DL></DL><HR><A NAME="RtfFont(com.lowagie.text.rtf.document.RtfDocument, com.lowagie.text.Font)"><!-- --></A><H3>RtfFont</H3><PRE>public <B>RtfFont</B>(<A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html" title="class in com.lowagie.text.rtf.document">RtfDocument</A>&nbsp;doc,               <A HREF="../../../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A>&nbsp;font)</PRE><DL><DD>Constructs a RtfFont from a com.lowagie.text.Font<P><DL><DT><B>Parameters:</B><DD><CODE>doc</CODE> - The RtfDocument this font appears in<DD><CODE>font</CODE> - The Font to use as a base</DL></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="writeDefinition(java.io.OutputStream)"><!-- --></A><H3>writeDefinition</H3><PRE>public void <B>writeDefinition</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;result)                     throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Writes the font definition<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfExtendedElement.html#writeDefinition(java.io.OutputStream)">writeDefinition</A></CODE> in interface <CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfExtendedElement.html" title="interface in com.lowagie.text.rtf">RtfExtendedElement</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>result</CODE> - The <code>OutputStream</code> to write the element definition to<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="writeBegin(java.io.OutputStream)"><!-- --></A><H3>writeBegin</H3><PRE>public void <B>writeBegin</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;result)                throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Writes the font beginning<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>result</CODE> - The <code>OutputStream</code> to write to.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - On i/o errors.</DL></DD></DL><HR><A NAME="writeEnd(java.io.OutputStream)"><!-- --></A><H3>writeEnd</H3><PRE>public void <B>writeEnd</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;result)              throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Write the font end<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>result</CODE> - The <code>OutputStream</code> to write to.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - On i/o errors.</DL></DD></DL><HR><A NAME="writeContent(java.io.OutputStream)"><!-- --></A><H3>writeContent</H3><PRE>public void <B>writeContent</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;out)                  throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>unused<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html#writeContent(java.io.OutputStream)">writeContent</A></CODE> in interface <CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html" title="interface in com.lowagie.text.rtf">RtfBasicElement</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - The <code>OutputStream</code> to write the content to<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</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;obj)</PRE><DL><DD>Tests for equality of RtfFonts. RtfFonts are equal if their fontName, fontSize, fontStyle and fontSuperSubscript are equal<P><DD><DL><DT><B>Overrides:</B><DD><CODE><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></CODE> in class <CODE><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></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - The RtfFont to compare with this RtfFont<DT><B>Returns:</B><DD><code>True</code> if the RtfFonts are equal, <code>false</code> otherwise</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns the hash code of this RtfFont. The hash code is the hash code of the string containing the font name + font size + "-" + the font style + "-" + the font super/supscript value.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><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></CODE> in class <CODE><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></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The hash code of this RtfFont</DL></DD></DL><HR><A NAME="getFontName()"><!-- --></A><H3>getFontName</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>getFontName</B>()</PRE><DL><DD>Gets the font name of this RtfFont<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The font name</DL></DD></DL><HR><A NAME="setFontName(java.lang.String)"><!-- --></A><H3>setFontName</H3><PRE>protected void <B>setFontName</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;fontName)</PRE><DL><DD>Sets the font name of this RtfFont.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>fontName</CODE> - The font name to use</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><B>Description copied from class: <CODE><A HREF="../../../../../com/lowagie/text/Font.html#getFamilyname()">Font</A></CODE></B></DD><DD>Gets the familyname as a String.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/lowagie/text/Font.html#getFamilyname()">getFamilyname</A></CODE> in class <CODE><A HREF="../../../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the familyname<DT><B>See Also:</B><DD><A HREF="../../../../../com/lowagie/text/Font.html#getFamilyname()"><CODE>Font.getFamilyname()</CODE></A></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><B>Description copied from class: <CODE><A HREF="../../../../../com/lowagie/text/Font.html#setFamily(java.lang.String)">Font</A></CODE></B></DD><DD>Sets the family using a <CODE>String</CODE> ("Courier", "Helvetica", "Times New Roman", "Symbol" or "ZapfDingbats").<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/lowagie/text/Font.html#setFamily(java.lang.String)">setFamily</A></CODE> in class <CODE><A HREF="../../../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>family</CODE> - A <CODE>String</CODE> representing a certain font-family.<DT><B>See Also:</B><DD><A HREF="../../../../../com/lowagie/text/Font.html#setFamily(java.lang.String)"><CODE>Font.setFamily(String)</CODE></A></DL></DD></DL><HR><A NAME="setToDefaultFamily(java.lang.String)"><!-- --></A><H3>setToDefaultFamily</H3><PRE>private void <B>setToDefaultFamily</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;familyname)</PRE><DL><DD>Sets the correct font name from the family name.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>familyname</CODE> - The family name to set the name to.</DL></DD></DL><HR><A NAME="getFontSize()"><!-- --></A><H3>getFontSize</H3><PRE>public int <B>getFontSize</B>()</PRE><D

⌨️ 快捷键说明

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