|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.bridge.SVGGVTFont
Represents an SVG font.
Constructor Summary | |
SVGGVTFont(float fontSize,
SVGFontFace fontFace,
java.lang.String[] glyphUnicodes,
java.lang.String[] glyphNames,
BridgeContext ctx,
Element[] glyphElements,
Element missingGlyphElement,
Element[] hkernElements,
Element textElement)
|
Method Summary | |
boolean |
canDisplay(char c)
Checks if this Font has a glyph for the specified character. |
boolean |
canDisplayGivenName(java.lang.String name)
Checks if this Font has a glyph for the glyph name. |
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. |
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. |
int |
canDisplayUpTo(java.lang.String str)
Indicates whether or not this Font can display a specified String. |
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. |
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. |
GVTGlyphVector |
createGlyphVector(java.awt.font.FontRenderContext frc,
int[] glyphCodes)
Returns a new GlyphVector object created with the specified integer array and the specified FontRenderContext. |
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. |
GVTFont |
deriveFont(float size)
Creates a new Font object by replicating the current Font object and applying a new size to it. |
float |
getKerning(java.lang.String unicode1,
java.lang.String unicode2)
Returns the kerning value of this character pair. |
GVTLineMetrics |
getLineMetrics(char[] chars,
int beginIndex,
int limit,
java.awt.font.FontRenderContext frc)
Returns a GVTLineMetrics object created with the specified arguments. |
GVTLineMetrics |
getLineMetrics(java.text.CharacterIterator ci,
int beginIndex,
int limit,
java.awt.font.FontRenderContext frc)
Returns a GVTLineMetrics object created with the specified arguments. |
GVTLineMetrics |
getLineMetrics(java.lang.String str,
java.awt.font.FontRenderContext frc)
Returns a GVTLineMetrics object created with the specified String and FontRenderContext. |
GVTLineMetrics |
getLineMetrics(java.lang.String str,
int beginIndex,
int limit,
java.awt.font.FontRenderContext frc)
Returns a GVTLineMetrics object created with the specified arguments. |
float |
getSize()
Returns the size of this font. |
java.lang.String |
toString()
|
char |
unicodeForName(java.lang.String name)
Returns the unicode character that corresponds to this glyph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SVGGVTFont(float fontSize, SVGFontFace fontFace, java.lang.String[] glyphUnicodes, java.lang.String[] glyphNames, BridgeContext ctx, Element[] glyphElements, Element missingGlyphElement, Element[] hkernElements, Element textElement)
Method Detail |
public float getKerning(java.lang.String unicode1, java.lang.String unicode2)
getKerning
in interface GVTFont
public boolean canDisplayGivenName(java.lang.String name)
name
- The glyph-name to look for.public char unicodeForName(java.lang.String name)
name
- The glyph-name to look for.public boolean canDisplay(char c)
canDisplay
in interface GVTFont
public int canDisplayUpTo(char[] text, int start, int limit)
canDisplayUpTo
in interface GVTFont
public int canDisplayUpTo(java.text.CharacterIterator iter, int start, int limit)
canDisplayUpTo
in interface GVTFont
public int canDisplayUpTo(java.lang.String str)
canDisplayUpTo
in interface GVTFont
public GVTGlyphVector createGlyphVector(java.awt.font.FontRenderContext frc, char[] chars)
createGlyphVector
in interface GVTFont
public GVTGlyphVector createGlyphVector(java.awt.font.FontRenderContext frc, java.text.CharacterIterator ci)
createGlyphVector
in interface GVTFont
public GVTGlyphVector createGlyphVector(java.awt.font.FontRenderContext frc, int[] glyphCodes)
createGlyphVector
in interface GVTFont
public GVTGlyphVector createGlyphVector(java.awt.font.FontRenderContext frc, java.lang.String str)
createGlyphVector
in interface GVTFont
public GVTFont deriveFont(float size)
deriveFont
in interface GVTFont
public GVTLineMetrics getLineMetrics(char[] chars, int beginIndex, int limit, java.awt.font.FontRenderContext frc)
getLineMetrics
in interface GVTFont
public GVTLineMetrics getLineMetrics(java.text.CharacterIterator ci, int beginIndex, int limit, java.awt.font.FontRenderContext frc)
getLineMetrics
in interface GVTFont
public GVTLineMetrics getLineMetrics(java.lang.String str, java.awt.font.FontRenderContext frc)
getLineMetrics
in interface GVTFont
public GVTLineMetrics getLineMetrics(java.lang.String str, int beginIndex, int limit, java.awt.font.FontRenderContext frc)
getLineMetrics
in interface GVTFont
public float getSize()
getSize
in interface GVTFont
public java.lang.String toString()
toString
in interface GVTFont
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |