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

📄 fontfactoryimp.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DT><B>Parameters:</B><DD><CODE>fontname</CODE> - the name of the 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.<DT><B>Returns:</B><DD>the Font constructed based on the parameters</DL></DD></DL><HR><A NAME="getFont(java.lang.String, float, int)"><!-- --></A><H3>getFont</H3><PRE>public <A HREF="../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A> <B>getFont</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 <CODE>Font</CODE>-object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fontname</CODE> - the name of the font<DD><CODE>size</CODE> - the size of this font<DD><CODE>style</CODE> - the style of this font<DT><B>Returns:</B><DD>the Font constructed based on the parameters</DL></DD></DL><HR><A NAME="getFont(java.lang.String, float)"><!-- --></A><H3>getFont</H3><PRE>public <A HREF="../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A> <B>getFont</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)</PRE><DL><DD>Constructs a <CODE>Font</CODE>-object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fontname</CODE> - the name of the font<DD><CODE>size</CODE> - the size of this font<DT><B>Returns:</B><DD>the Font constructed based on the parameters</DL></DD></DL><HR><A NAME="getFont(java.lang.String)"><!-- --></A><H3>getFont</H3><PRE>public <A HREF="../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A> <B>getFont</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>Constructs a <CODE>Font</CODE>-object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fontname</CODE> - the name of the font<DT><B>Returns:</B><DD>the Font constructed based on the parameters</DL></DD></DL><HR><A NAME="registerFamily(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>registerFamily</H3><PRE>public void <B>registerFamily</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,                           <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;fullName,                           <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;path)</PRE><DL><DD>Register a font by giving explicitly the font family and name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>familyName</CODE> - the font family<DD><CODE>fullName</CODE> - the font name<DD><CODE>path</CODE> - the font path</DL></DD></DL><HR><A NAME="register(java.lang.String)"><!-- --></A><H3>register</H3><PRE>public void <B>register</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;path)</PRE><DL><DD>Register a ttf- or a ttc-file.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>path</CODE> - the path to a ttf- or ttc-file</DL></DD></DL><HR><A NAME="register(java.lang.String, java.lang.String)"><!-- --></A><H3>register</H3><PRE>public void <B>register</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;path,                     <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;alias)</PRE><DL><DD>Register a font file and use an alias for the font contained in it.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>path</CODE> - the path to a font file<DD><CODE>alias</CODE> - the alias you want to use for the font</DL></DD></DL><HR><A NAME="registerDirectory(java.lang.String)"><!-- --></A><H3>registerDirectory</H3><PRE>public int <B>registerDirectory</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;dir)</PRE><DL><DD>Register all the fonts in a directory.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dir</CODE> - the directory<DT><B>Returns:</B><DD>the number of fonts registered</DL></DD></DL><HR><A NAME="registerDirectory(java.lang.String, boolean)"><!-- --></A><H3>registerDirectory</H3><PRE>public int <B>registerDirectory</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;dir,                             boolean&nbsp;scanSubdirectories)</PRE><DL><DD>Register all the fonts in a directory and possibly its subdirectories.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dir</CODE> - the directory<DD><CODE>scanSubdirectories</CODE> - recursively scan subdirectories if <code>true</true><DT><B>Returns:</B><DD>the number of fonts registered<DT><B>Since:</B></DT>  <DD>2.1.2</DD></DL></DD></DL><HR><A NAME="registerDirectories()"><!-- --></A><H3>registerDirectories</H3><PRE>public int <B>registerDirectories</B>()</PRE><DL><DD>Register fonts in some probable directories. It usually works in Windows, Linux and Solaris.<P><DD><DL><DT><B>Returns:</B><DD>the number of fonts registered</DL></DD></DL><HR><A NAME="getRegisteredFonts()"><!-- --></A><H3>getRegisteredFonts</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A> <B>getRegisteredFonts</B>()</PRE><DL><DD>Gets a set of registered fontnames.<P><DD><DL><DT><B>Returns:</B><DD>a set of registered fonts</DL></DD></DL><HR><A NAME="getRegisteredFamilies()"><!-- --></A><H3>getRegisteredFamilies</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A> <B>getRegisteredFamilies</B>()</PRE><DL><DD>Gets a set of registered fontnames.<P><DD><DL><DT><B>Returns:</B><DD>a set of registered font families</DL></DD></DL><HR><A NAME="isRegistered(java.lang.String)"><!-- --></A><H3>isRegistered</H3><PRE>public boolean <B>isRegistered</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>Checks if a certain font is registered.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fontname</CODE> - the name of the font that has to be checked.<DT><B>Returns:</B><DD>true if the font is found</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/FontFactory.html" title="class in com.lowagie.text"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../com/lowagie/text/GreekList.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/FontFactoryImp.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="FontFactoryImp.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 + -