L'interface Font
![]()
Les objets implantant cette interface seront à même d'être utilisés comme police de caractères dans un certain nombre de fonctions relatives à l'affichage de caractères et de chaînes de caractères.
Constructeurs |
| Font(Map attributes) |
| Font(String name, int style, int size) |
Valeur rendue |
Nom et paramètres des méthodes |
| boolean | canDisplay(char c) |
| int | canDisplayUpTo(char[] text, int start, int limit) |
| int | canDisplayUpTo(CharacterIterator iter, int start, int limit) |
| int | canDisplayUpTo(String str) |
| static Font | createFont(int fontFormat, InputStream fontStream) |
| GlyphVector | createGlyphVector(FontRenderContext frc, char[] chars) |
| GlyphVector | createGlyphVector(FontRenderContext frc, CharacterIterator ci) |
| GlyphVector | createGlyphVector(FontRenderContext frc, int[] glyphCodes) |
| GlyphVector | createGlyphVector(FontRenderContext frc, String str) |
| static Font | decode(String str) |
| Font | deriveFont(AffineTransform trans) |
| Font | deriveFont(float size) |
| Font | deriveFont(int style) |
| Font | deriveFont(int style, AffineTransform trans) |
| Font | deriveFont(int style, float size) |
| Font | deriveFont(Map attributes) |
| Map | getAttributes() |
| AttributedCharacter Iterator.Attribute[] |
getAvailableAttributes() |
| byte | getBaselineFor(char c) |
| String | getFamily() |
| String | getFamily(Locale l) |
| static Font | getFont(Map attributes) |
| static Font | getFont(String nm) |
| static Font | getFont(String nm, Font font) |
| String | getFontName() |
| String | getFontName(Locale l) |
| float | getItalicAngle() |
| LineMetrics | getLineMetrics(char[] chars, int beginIndex, int limit, FontRenderContext frc) |
| LineMetrics | getLineMetrics(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc) |
| LineMetrics | getLineMetrics(String str, FontRenderContext frc) |
| LineMetrics | getLineMetrics(String str, int beginIndex, int limit, FontRenderContext frc) |
| Rectangle2D | getMaxCharBounds(FontRenderContext frc) |
| int | getMissingGlyphCode() |
| String | getName() |
| int | getNumGlyphs() |
| String | getPSName() |
| int | getSize() |
| float | getSize2D() |
| Rectangle2D | getStringBounds(char[] chars, int beginIndex, int limit, FontRenderContext frc) |
| Rectangle2D | getStringBounds(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc) |
| Rectangle2D | getStringBounds(String str, FontRenderContext frc) |
| Rectangle2D | getStringBounds(String str, int beginIndex, int limit, FontRenderContext frc) |
| int | getStyle() |
| AffineTransform | getTransform() |
| boolean | hasUniformLineMetrics() |
| boolean | isBold() |
| boolean | isItalic() |
| boolean | isPlain() |
Valeur |
Champ |
| static int | BOLD |
| static int | CENTER_BASELINE |
| static int | HANGING_BASELINE |
| static int | ITALIC |
| protected String | name |
| static int | PLAIN |
| protected float | pointSize |
| static int | ROMAN_BASELINE |
| protected int | size |
| protected int | style |
| static int | TRUETYPE_FONT |
La seule classe qui implante Font est: