public interface GVTFont
Modifier and Type | Method and Description |
---|---|
boolean |
canDisplay(char c)
Checks if this Font has a glyph for the specified character.
|
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,
java.text.CharacterIterator ci)
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.
|
java.lang.String |
getFamilyName()
Returns the font family name of this font.
|
float |
getHKern(int glyphCode1,
int glyphCode2)
Returns the vertical kerning value of this glyph 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.
|
float |
getVKern(int glyphCode1,
int glyphCode2)
Returns the horizontal kerning value of this glyph pair.
|
java.lang.String |
toString() |
boolean canDisplay(char c)
int canDisplayUpTo(char[] text, int start, int limit)
int canDisplayUpTo(java.text.CharacterIterator iter, int start, int limit)
int canDisplayUpTo(java.lang.String str)
GVTGlyphVector createGlyphVector(java.awt.font.FontRenderContext frc, char[] chars)
GVTGlyphVector createGlyphVector(java.awt.font.FontRenderContext frc, java.text.CharacterIterator ci)
GVTGlyphVector createGlyphVector(java.awt.font.FontRenderContext frc, int[] glyphCodes, java.text.CharacterIterator ci)
GVTGlyphVector createGlyphVector(java.awt.font.FontRenderContext frc, java.lang.String str)
GVTFont deriveFont(float size)
java.lang.String getFamilyName()
GVTLineMetrics getLineMetrics(char[] chars, int beginIndex, int limit, java.awt.font.FontRenderContext frc)
GVTLineMetrics getLineMetrics(java.text.CharacterIterator ci, int beginIndex, int limit, java.awt.font.FontRenderContext frc)
GVTLineMetrics getLineMetrics(java.lang.String str, java.awt.font.FontRenderContext frc)
GVTLineMetrics getLineMetrics(java.lang.String str, int beginIndex, int limit, java.awt.font.FontRenderContext frc)
float getSize()
float getVKern(int glyphCode1, int glyphCode2)
float getHKern(int glyphCode1, int glyphCode2)
java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2022 Apache Software Foundation. All Rights Reserved.