Package org.apache.batik.gvt.font
Interface GVTFont
-
- All Known Implementing Classes:
AWTGVTFont,SVGGVTFont
public interface GVTFontAn interface for all GVT font classes.- Version:
- $Id: GVTFont.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanDisplay(char c)Checks if this Font has a glyph for the specified character.intcanDisplayUpTo(char[] text, int start, int limit)Indicates whether or not this Font can display the characters in the specified text starting at start and ending at limit.intcanDisplayUpTo(java.lang.String str)Indicates whether or not this Font can display a specified String.intcanDisplayUpTo(java.text.CharacterIterator iter, int start, int limit)Indicates whether or not this Font can display the the characters in the specified CharacterIterator starting at start and ending at limit.GVTGlyphVectorcreateGlyphVector(java.awt.font.FontRenderContext frc, char[] chars)Returns a new GlyphVector object created with the specified array of characters and the specified FontRenderContext.GVTGlyphVectorcreateGlyphVector(java.awt.font.FontRenderContext frc, int[] glyphCodes, java.text.CharacterIterator ci)Returns a new GlyphVector object created with the specified integer array and the specified FontRenderContext.GVTGlyphVectorcreateGlyphVector(java.awt.font.FontRenderContext frc, java.lang.String str)Returns a new GlyphVector object created with the specified String and the specified FontRenderContext.GVTGlyphVectorcreateGlyphVector(java.awt.font.FontRenderContext frc, java.text.CharacterIterator ci)Returns a new GlyphVector object created with the specified CharacterIterator and the specified FontRenderContext.GVTFontderiveFont(float size)Creates a new Font object by replicating the current Font object and applying a new size to it.java.lang.StringgetFamilyName()Returns the font family name of this font.floatgetHKern(int glyphCode1, int glyphCode2)Returns the vertical kerning value of this glyph pair.GVTLineMetricsgetLineMetrics(char[] chars, int beginIndex, int limit, java.awt.font.FontRenderContext frc)Returns a GVTLineMetrics object created with the specified arguments.GVTLineMetricsgetLineMetrics(java.lang.String str, int beginIndex, int limit, java.awt.font.FontRenderContext frc)Returns a GVTLineMetrics object created with the specified arguments.GVTLineMetricsgetLineMetrics(java.lang.String str, java.awt.font.FontRenderContext frc)Returns a GVTLineMetrics object created with the specified String and FontRenderContext.GVTLineMetricsgetLineMetrics(java.text.CharacterIterator ci, int beginIndex, int limit, java.awt.font.FontRenderContext frc)Returns a GVTLineMetrics object created with the specified arguments.floatgetSize()Returns the size of this font.floatgetVKern(int glyphCode1, int glyphCode2)Returns the horizontal kerning value of this glyph pair.java.lang.StringtoString()
-
-
-
Method Detail
-
canDisplay
boolean canDisplay(char c)
Checks if this Font has a glyph for the specified character.
-
canDisplayUpTo
int canDisplayUpTo(char[] text, int start, int limit)Indicates whether or not this Font can display the characters in the specified text starting at start and ending at limit.
-
canDisplayUpTo
int canDisplayUpTo(java.text.CharacterIterator iter, int start, int limit)Indicates whether or not this Font can display the the characters in the specified CharacterIterator starting at start and ending at limit.
-
canDisplayUpTo
int canDisplayUpTo(java.lang.String str)
Indicates whether or not this Font can display a specified String.
-
createGlyphVector
GVTGlyphVector createGlyphVector(java.awt.font.FontRenderContext frc, char[] chars)
Returns a new GlyphVector object created with the specified array of characters and the specified FontRenderContext.
-
createGlyphVector
GVTGlyphVector createGlyphVector(java.awt.font.FontRenderContext frc, java.text.CharacterIterator ci)
Returns a new GlyphVector object created with the specified CharacterIterator and the specified FontRenderContext.
-
createGlyphVector
GVTGlyphVector createGlyphVector(java.awt.font.FontRenderContext frc, int[] glyphCodes, java.text.CharacterIterator ci)
Returns a new GlyphVector object created with the specified integer array and the specified FontRenderContext.
-
createGlyphVector
GVTGlyphVector createGlyphVector(java.awt.font.FontRenderContext frc, java.lang.String str)
Returns a new GlyphVector object created with the specified String and the specified FontRenderContext.
-
deriveFont
GVTFont deriveFont(float size)
Creates a new Font object by replicating the current Font object and applying a new size to it.
-
getFamilyName
java.lang.String getFamilyName()
Returns the font family name of this font.
-
getLineMetrics
GVTLineMetrics getLineMetrics(char[] chars, int beginIndex, int limit, java.awt.font.FontRenderContext frc)
Returns a GVTLineMetrics object created with the specified arguments.
-
getLineMetrics
GVTLineMetrics getLineMetrics(java.text.CharacterIterator ci, int beginIndex, int limit, java.awt.font.FontRenderContext frc)
Returns a GVTLineMetrics object created with the specified arguments.
-
getLineMetrics
GVTLineMetrics getLineMetrics(java.lang.String str, java.awt.font.FontRenderContext frc)
Returns a GVTLineMetrics object created with the specified String and FontRenderContext.
-
getLineMetrics
GVTLineMetrics getLineMetrics(java.lang.String str, int beginIndex, int limit, java.awt.font.FontRenderContext frc)
Returns a GVTLineMetrics object created with the specified arguments.
-
getSize
float getSize()
Returns the size of this font.
-
getVKern
float getVKern(int glyphCode1, int glyphCode2)Returns the horizontal kerning value of this glyph pair.
-
getHKern
float getHKern(int glyphCode1, int glyphCode2)Returns the vertical kerning value of this glyph pair.
-
toString
java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-