font.html
来自「API資料大全」· HTML 代码 · 共 1,223 行 · 第 1/5 页
HTML
1,223 行
Returns the <code>Font</code> that the <code>str</code> argument describes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../java/awt/Font.html">Font</A></CODE></FONT></TD><TD><CODE><B>Font.</B><B><A HREF="../../../java/awt/Font.html#getFont(java.lang.String, java.awt.Font)">getFont</A></B>(<A HREF="../../../java/lang/String.html">String</A> nm, <A HREF="../../../java/awt/Font.html">Font</A> font)</CODE><BR> Gets the specified <code>Font</code> from the system properties list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Font.html">Font</A></CODE></FONT></TD><TD><CODE><B>Font.</B><B><A HREF="../../../java/awt/Font.html#deriveFont(int, float)">deriveFont</A></B>(int style, float size)</CODE><BR> Creates a new <code>Font</code> object by replicating this <code>Font</code> object and applying a new style and size.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Font.html">Font</A></CODE></FONT></TD><TD><CODE><B>Font.</B><B><A HREF="../../../java/awt/Font.html#deriveFont(int, java.awt.geom.AffineTransform)">deriveFont</A></B>(int style, <A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A> trans)</CODE><BR> Creates a new <code>Font</code> object by replicating this <code>Font</code> object and applying a new style and transform.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Font.html">Font</A></CODE></FONT></TD><TD><CODE><B>Font.</B><B><A HREF="../../../java/awt/Font.html#deriveFont(float)">deriveFont</A></B>(float size)</CODE><BR> Creates a new <code>Font</code> object by replicating the current <code>Font</code> object and applying a new size to it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Font.html">Font</A></CODE></FONT></TD><TD><CODE><B>Font.</B><B><A HREF="../../../java/awt/Font.html#deriveFont(java.awt.geom.AffineTransform)">deriveFont</A></B>(<A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A> trans)</CODE><BR> Creates a new <code>Font</code> object by replicating the current <code>Font</code> object and applying a new transform to it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Font.html">Font</A></CODE></FONT></TD><TD><CODE><B>Font.</B><B><A HREF="../../../java/awt/Font.html#deriveFont(int)">deriveFont</A></B>(int style)</CODE><BR> Creates a new <code>Font</code> object by replicating the current <code>Font</code> object and applying a new style to it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Font.html">Font</A></CODE></FONT></TD><TD><CODE><B>Font.</B><B><A HREF="../../../java/awt/Font.html#deriveFont(java.util.Map)">deriveFont</A></B>(<A HREF="../../../java/util/Map.html">Map</A> attributes)</CODE><BR> Creates a new <code>Font</code> object by replicating the current <code>Font</code> object and applying a new set of font attributes to it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Font.html">Font</A></CODE></FONT></TD><TD><CODE><B>List.AccessibleAWTList.AccessibleAWTListChild.</B><B><A HREF="../../../java/awt/List.AccessibleAWTList.AccessibleAWTListChild.html#getFont()">getFont</A></B>()</CODE><BR> Get the Font of this object.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/awt/package-summary.html">java.awt</A> with parameters of type <A HREF="../../../java/awt/Font.html">Font</A></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>Component.</B><B><A HREF="../../../java/awt/Component.html#setFont(java.awt.Font)">setFont</A></B>(<A HREF="../../../java/awt/Font.html">Font</A> f)</CODE><BR> Sets the font of this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/FontMetrics.html">FontMetrics</A></CODE></FONT></TD><TD><CODE><B>Component.</B><B><A HREF="../../../java/awt/Component.html#getFontMetrics(java.awt.Font)">getFontMetrics</A></B>(<A HREF="../../../java/awt/Font.html">Font</A> font)</CODE><BR> Gets the font metrics for the specified 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>Container.</B><B><A HREF="../../../java/awt/Container.html#setFont(java.awt.Font)">setFont</A></B>(<A HREF="../../../java/awt/Font.html">Font</A> f)</CODE><BR> Sets the font of this container.</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>Component.AccessibleAWTComponent.</B><B><A HREF="../../../java/awt/Component.AccessibleAWTComponent.html#setFont(java.awt.Font)">setFont</A></B>(<A HREF="../../../java/awt/Font.html">Font</A> f)</CODE><BR> Set the Font of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/FontMetrics.html">FontMetrics</A></CODE></FONT></TD><TD><CODE><B>Component.AccessibleAWTComponent.</B><B><A HREF="../../../java/awt/Component.AccessibleAWTComponent.html#getFontMetrics(java.awt.Font)">getFontMetrics</A></B>(<A HREF="../../../java/awt/Font.html">Font</A> f)</CODE><BR> Get the FontMetrics of this object.</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>MenuComponent.</B><B><A HREF="../../../java/awt/MenuComponent.html#setFont(java.awt.Font)">setFont</A></B>(<A HREF="../../../java/awt/Font.html">Font</A> f)</CODE><BR> Sets the font to be used for this menu component to the specified 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>MenuComponent.AccessibleAWTMenuComponent.</B><B><A HREF="../../../java/awt/MenuComponent.AccessibleAWTMenuComponent.html#setFont(java.awt.Font)">setFont</A></B>(<A HREF="../../../java/awt/Font.html">Font</A> f)</CODE><BR> Set the Font of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/FontMetrics.html">FontMetrics</A></CODE></FONT></TD><TD><CODE><B>MenuComponent.AccessibleAWTMenuComponent.</B><B><A HREF="../../../java/awt/MenuComponent.AccessibleAWTMenuComponent.html#getFontMetrics(java.awt.Font)">getFontMetrics</A></B>(<A HREF="../../../java/awt/Font.html">Font</A> f)</CODE><BR> Get the FontMetrics of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B>Graphics.</B><B><A HREF="../../../java/awt/Graphics.html#setFont(java.awt.Font)">setFont</A></B>(<A HREF="../../../java/awt/Font.html">Font</A> font)</CODE><BR> Sets this graphics context's font to the specified font.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/awt/FontMetrics.html">FontMetrics</A></CODE></FONT></TD><TD><CODE><B>Graphics.</B><B><A HREF="../../../java/awt/Graphics.html#getFontMetrics(java.awt.Font)">getFontMetrics</A></B>(<A HREF="../../../java/awt/Font.html">Font</A> f)</CODE><BR> Gets the font metrics for the specified font.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../java/awt/Font.html">Font</A></CODE></FONT></TD><TD><CODE><B>Font.</B><B><A HREF="../../../java/awt/Font.html#getFont(java.lang.String, java.awt.Font)">getFont</A></B>(<A HREF="../../../java/lang/String.html">String</A> nm, <A HREF="../../../java/awt/Font.html">Font</A> font)</CODE><BR> Gets the specified <code>Font</code> from the system properties list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/awt/FontMetrics.html">FontMetrics</A></CODE></FONT></TD><TD><CODE><B>Toolkit.</B><B><A HREF="../../../java/awt/Toolkit.html#getFontMetrics(java.awt.Font)">getFontMetrics</A></B>(<A HREF="../../../java/awt/Font.html">Font</A> font)</CODE><BR> <B>Deprecated.</B> <I>This returns integer metrics for the default screen.</I></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>List.AccessibleAWTList.AccessibleAWTListChild.</B><B><A HREF="../../../java/awt/List.AccessibleAWTList.AccessibleAWTListChild.html#setFont(java.awt.Font)">setFont</A></B>(<A HREF="../../../java/awt/Font.html">Font</A> f)</CODE><BR> Set the Font of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/FontMetrics.html">FontMetrics</A></CODE></FONT></TD><TD><CODE><B>List.AccessibleAWTList.AccessibleAWTListChild.</B><B><A HREF="../../../java/awt/List.AccessibleAWTList.AccessibleAWTListChild.html#getFontMetrics(java.awt.Font)">getFontMetrics</A></B>(<A HREF="../../../java/awt/Font.html">Font</A> f)</CODE><BR> Get the FontMetrics of this object.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../java/awt/package-summary.html">java.awt</A> with parameters of type <A HREF="../../../java/awt/Font.html">Font</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/FontMetrics.html#FontMetrics(java.awt.Font)">FontMetrics</A></B>(<A HREF="../../../java/awt/Font.html">Font</A> font)</CODE><BR> Creates a new <code>FontMetrics</code> object for finding out height and width information about the specified <code>Font</code> and specific character glyphs in that <code>Font</code>.</TD></TR></TABLE> <P><A NAME="java.awt.font"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../java/awt/Font.html">Font</A> in <A HREF="../../../java/awt/font/package-summary.html">java.awt.font</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/awt/font/package-summary.html">java.awt.font</A> that return <A HREF="../../../java/awt/Font.html">Font</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/awt/Font.html">Font</A></CODE></FONT></TD><TD><CODE><B>GlyphVector.</B><B><A HREF="../../../java/awt/font/GlyphVector.html#getFont()">getFont</A></B>()</CODE><BR> Returns the <code>Font</code> associated with this <code>GlyphVector</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?