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

📄 font.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DD><DL><DT><B>Parameters:</B><DD><CODE>linespacing</CODE> - a certain linespacing<DT><B>Returns:</B><DD>the height of a line</DL></DD></DL><HR><A NAME="setSize(float)"><!-- --></A><H3>setSize</H3><PRE>public void <B>setSize</B>(float&nbsp;size)</PRE><DL><DD>Sets the size.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - The new size of the font.</DL></DD></DL><HR><A NAME="getStyle()"><!-- --></A><H3>getStyle</H3><PRE>public int <B>getStyle</B>()</PRE><DL><DD>Gets the style of this font.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a size</DL></DD></DL><HR><A NAME="getCalculatedStyle()"><!-- --></A><H3>getCalculatedStyle</H3><PRE>public int <B>getCalculatedStyle</B>()</PRE><DL><DD>Gets the style that can be used with the calculated <CODE>BaseFont </CODE>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the style that can be used with the calculated <CODE>BaseFont         </CODE></DL></DD></DL><HR><A NAME="isBold()"><!-- --></A><H3>isBold</H3><PRE>public boolean <B>isBold</B>()</PRE><DL><DD>checks if this font is Bold.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <CODE>boolean</CODE></DL></DD></DL><HR><A NAME="isItalic()"><!-- --></A><H3>isItalic</H3><PRE>public boolean <B>isItalic</B>()</PRE><DL><DD>checks if this font is Bold.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <CODE>boolean</CODE></DL></DD></DL><HR><A NAME="isUnderlined()"><!-- --></A><H3>isUnderlined</H3><PRE>public boolean <B>isUnderlined</B>()</PRE><DL><DD>checks if this font is underlined.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <CODE>boolean</CODE></DL></DD></DL><HR><A NAME="isStrikethru()"><!-- --></A><H3>isStrikethru</H3><PRE>public boolean <B>isStrikethru</B>()</PRE><DL><DD>checks if the style of this font is STRIKETHRU.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <CODE>boolean</CODE></DL></DD></DL><HR><A NAME="setStyle(int)"><!-- --></A><H3>setStyle</H3><PRE>public void <B>setStyle</B>(int&nbsp;style)</PRE><DL><DD>Sets the style.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>style</CODE> - the style.</DL></DD></DL><HR><A NAME="setStyle(java.lang.String)"><!-- --></A><H3>setStyle</H3><PRE>public void <B>setStyle</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;style)</PRE><DL><DD>Sets the style using a <CODE>String</CODE> containing one of more of the following values: normal, bold, italic, underline, strike.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>style</CODE> - A <CODE>String</CODE> representing a certain style.</DL></DD></DL><HR><A NAME="getStyleValue(java.lang.String)"><!-- --></A><H3>getStyleValue</H3><PRE>public static int <B>getStyleValue</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;style)</PRE><DL><DD>Translates a <CODE>String</CODE> -value of a certain style into the index value is used for this style in this class.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>style</CODE> - A <CODE>String</CODE><DT><B>Returns:</B><DD>the corresponding value</DL></DD></DL><HR><A NAME="getColor()"><!-- --></A><H3>getColor</H3><PRE>public <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>getColor</B>()</PRE><DL><DD>Gets the color of this font.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a color</DL></DD></DL><HR><A NAME="setColor(java.awt.Color)"><!-- --></A><H3>setColor</H3><PRE>public void <B>setColor</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>&nbsp;color)</PRE><DL><DD>Sets the color.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>color</CODE> - the new color of the font</DL></DD></DL><HR><A NAME="setColor(int, int, int)"><!-- --></A><H3>setColor</H3><PRE>public void <B>setColor</B>(int&nbsp;red,                     int&nbsp;green,                     int&nbsp;blue)</PRE><DL><DD>Sets the color.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>red</CODE> - the red-value of the new color<DD><CODE>green</CODE> - the green-value of the new color<DD><CODE>blue</CODE> - the blue-value of the new color</DL></DD></DL><HR><A NAME="getBaseFont()"><!-- --></A><H3>getBaseFont</H3><PRE>public <A HREF="../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A> <B>getBaseFont</B>()</PRE><DL><DD>Gets the <CODE>BaseFont</CODE> inside this object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <CODE>BaseFont</CODE></DL></DD></DL><HR><A NAME="getCalculatedBaseFont(boolean)"><!-- --></A><H3>getCalculatedBaseFont</H3><PRE>public <A HREF="../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A> <B>getCalculatedBaseFont</B>(boolean&nbsp;specialEncoding)</PRE><DL><DD>Gets the <CODE>BaseFont</CODE> this class represents. For the built-in fonts a <CODE>BaseFont</CODE> is calculated.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>specialEncoding</CODE> - <CODE>true</CODE> to use the special encoding for Symbol and            ZapfDingbats, <CODE>false</CODE> to always use <CODE>Cp1252            </CODE><DT><B>Returns:</B><DD>the <CODE>BaseFont</CODE> this class represents</DL></DD></DL><HR><A NAME="isStandardFont()"><!-- --></A><H3>isStandardFont</H3><PRE>public boolean <B>isStandardFont</B>()</PRE><DL><DD>Checks if the properties of this font are undefined or null. <P> If so, the standard should be used.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <CODE>boolean</CODE></DL></DD></DL><HR><A NAME="difference(com.lowagie.text.Font)"><!-- --></A><H3>difference</H3><PRE>public <A HREF="../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A> <B>difference</B>(<A HREF="../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A>&nbsp;font)</PRE><DL><DD>Replaces the attributes that are equal to <VAR>null</VAR> with the attributes of a given font.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>font</CODE> - the font of a bigger element class<DT><B>Returns:</B><DD>a <CODE>Font</CODE></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>Hosted by <a href="http://www.hostbasket.com/">Hostbasket</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../com/lowagie/text/ExceptionConverter.html" title="class in com.lowagie.text"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../com/lowagie/text/FontFactory.html" title="class in com.lowagie.text"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?com/lowagie/text/Font.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Font.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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