java.lang.Object
java.awt.Font
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- FontUIResource
- See Also:
- Top Examples, Source Code,
getAllFonts, TextField, Label, createFont
public static final int BOLD
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean canDisplay(char c)
- See Also:
canDisplay(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean canDisplay(int codePoint)
- See Also:
Character.isValidCodePoint(int), IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int canDisplayUpTo(char[] text,
int start,
int limit)- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int canDisplayUpTo(String str)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int canDisplayUpTo(CharacterIterator iter,
int start,
int limit)- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENTER_BASELINE
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Font createFont(int fontFormat,
File fontFile)
throws FontFormatException,
IOException- See Also:
- SecurityException, NullPointerException, IllegalArgumentException,
TYPE1_FONT, TRUETYPE_FONT, PLAIN
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Font createFont(int fontFormat,
InputStream fontStream)
throws FontFormatException,
IOException- See Also:
- IllegalArgumentException,
TYPE1_FONT, TRUETYPE_FONT, PLAIN
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1173]_
By Anonymous on 2004/12/06 02:26:23 Rate
createFont ( int fontFormat, InputStream fontStream )
Returns a new Font with the specified font type and input data.
public GlyphVector createGlyphVector(FontRenderContext frc,
char[] chars)- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public GlyphVector createGlyphVector(FontRenderContext frc,
int[] glyphCodes)- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public GlyphVector createGlyphVector(FontRenderContext frc,
String str)- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public GlyphVector createGlyphVector(FontRenderContext frc,
CharacterIterator ci)- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Font decode(String str)
- See Also:
getFamily(), GraphicsEnvironment.getAvailableFontFamilyNames()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Font deriveFont(float size)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Font deriveFont(int style)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Font deriveFont(int style,
float size)- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Font deriveFont(int style,
AffineTransform trans)- See Also:
- IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Font deriveFont(AffineTransform trans)
- See Also:
- IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Font deriveFont(Map<? extends AttributedCharacterIterator.Attribute,?> attributes)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean equals(Object obj)
- See Also:
Hashtable, Object.hashCode()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected void finalize()
throws Throwable- See Also:
- Object
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Font(String name,
int style,
int size)- See Also:
GraphicsEnvironment.getAvailableFontFamilyNames(), GraphicsEnvironment.getAllFonts()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[315]Change a font on a report
By test awt on 2005/01/29 05:01:37 Rate
report.setCurrentFont ( "HeiseiMin-W3-Acro" ( "MS Mincho", Font.PLAIN, 8 ) ) ;
public Font(Map<? extends AttributedCharacterIterator.Attribute,?> attributes)
- See Also:
TextAttribute
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Map<TextAttribute,?> getAttributes()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public AttributedCharacterIterator.Attribute[] getAvailableAttributes()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public byte getBaselineFor(char c)
- See Also:
HANGING_BASELINE, CENTER_BASELINE, ROMAN_BASELINE, LineMetrics.getBaselineOffsets()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getFamily()
- See Also:
getFontName(), getName(), GraphicsEnvironment.getAvailableFontFamilyNames()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getFamily(Locale l)
- See Also:
-
getFontName(), GraphicsEnvironment.getAvailableFontFamilyNames()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Font getFont(String nm)
- See Also:
decode(String), NullPointerException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Font getFont(String nm,
Font font)- See Also:
decode(String), NullPointerException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Font getFont(Map<? extends AttributedCharacterIterator.Attribute,?> attributes)
- See Also:
TextAttribute
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getFontName()
- See Also:
getName(), getFamily()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getFontName(Locale l)
- See Also:
-
getFamily()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public float getItalicAngle()
- See Also:
TextAttribute.POSTURE
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public LineMetrics getLineMetrics(char[] chars,
int beginIndex,
int limit,
FontRenderContext frc)- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public LineMetrics getLineMetrics(String str,
int beginIndex,
int limit,
FontRenderContext frc)- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public LineMetrics getLineMetrics(String str,
FontRenderContext frc)- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public LineMetrics getLineMetrics(CharacterIterator ci,
int beginIndex,
int limit,
FontRenderContext frc)- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Rectangle2D getMaxCharBounds(FontRenderContext frc)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getMissingGlyphCode()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getName()
- See Also:
getFontName(), getFamily()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getNumGlyphs()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
@Deprecated
public java.awt.peer.FontPeer getPeer()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getPSName()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getSize()
- See Also:
GraphicsConfiguration.getNormalizingTransform(), GraphicsConfiguration.getDefaultTransform(), getSize2D()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public float getSize2D()
- See Also:
getSize()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Rectangle2D getStringBounds(char[] chars,
int beginIndex,
int limit,
FontRenderContext frc)- See Also:
createGlyphVector(java.awt.font.FontRenderContext, java.lang.String), IndexOutOfBoundsException, getBounds
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Rectangle2D getStringBounds(String str,
int beginIndex,
int limit,
FontRenderContext frc)- See Also:
createGlyphVector(java.awt.font.FontRenderContext, java.lang.String), IndexOutOfBoundsException, getBounds
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Rectangle2D getStringBounds(String str,
FontRenderContext frc)- See Also:
createGlyphVector(java.awt.font.FontRenderContext, java.lang.String), getBounds
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Rectangle2D getStringBounds(CharacterIterator ci,
int beginIndex,
int limit,
FontRenderContext frc)- See Also:
createGlyphVector(java.awt.font.FontRenderContext, java.lang.String), IndexOutOfBoundsException, getBounds
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getStyle()
- See Also:
isItalic(), isBold(), isPlain()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public AffineTransform getTransform()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int HANGING_BASELINE
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int hashCode()
- See Also:
Hashtable, Object.equals(java.lang.Object)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean hasUniformLineMetrics()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isBold()
- See Also:
getStyle()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isItalic()
- See Also:
getStyle()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isPlain()
- See Also:
getStyle()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isTransformed()
- See Also:
getTransform()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int ITALIC
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public GlyphVector layoutGlyphVector(FontRenderContext frc,
char[] text,
int start,
int limit,
int flags)- See Also:
LAYOUT_NO_LIMIT_CONTEXT, LAYOUT_NO_START_CONTEXT, LAYOUT_RIGHT_TO_LEFT, LAYOUT_LEFT_TO_RIGHT, Bidi, ArrayIndexOutOfBoundsException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LAYOUT_LEFT_TO_RIGHT
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LAYOUT_NO_LIMIT_CONTEXT
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LAYOUT_NO_START_CONTEXT
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LAYOUT_RIGHT_TO_LEFT
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected String name
- See Also:
getName()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int PLAIN
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1600]Change a JLable font and size
By Anonymous on 2005/11/04 20:23:08 Rate
JLabel result = new JLabel ( ) ;
result.setPreferredSize ( new Dimension ( 80, 20 ) ) ;
result.setFont ( new Font ( "Arial", Font.PLAIN, 12 ) ) ;
protected float pointSize
- See Also:
getSize2D(), getSize()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int ROMAN_BASELINE
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected int size
- See Also:
getSize()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected int style
- See Also:
getStyle()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String toString()
- See Also:
- Object
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[627]_
By Anonymous on 2004/12/15 02:44:10 Rate
int a = 1 ;
String b = toString ( a ) ;
public static final int TRUETYPE_FONT
- See Also:
createFont(int, java.io.InputStream)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int TYPE1_FONT
- See Also:
createFont(int, java.io.InputStream)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples