|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgestalt.extension.font.FontMetrics
public class FontMetrics
| Constructor Summary | |
|---|---|
FontMetrics()
|
|
FontMetrics(java.io.InputStream path)
Constructor. |
|
| Method Summary | |
|---|---|
Vector2f[] |
getCharacterPositions(char[] chars)
Returns the character positions calcualted form the char[]. |
int |
getCharacterWidth(char c)
Returns the advance of an single character, simply called width |
int |
getFUnitsPerEm()
Returns the number of fUnits per em, usually 2048 in truetype and 1000 in postscript fonts. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FontMetrics()
public FontMetrics(java.io.InputStream path)
path - String| Method Detail |
|---|
public int getFUnitsPerEm()
public int getCharacterWidth(char c)
c - char
public Vector2f[] getCharacterPositions(char[] chars)
chars - char[]
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||