public class TTFFile
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getFamilyNames()
Returns the font family names of the font.
|
java.lang.String |
getFullName()
Returns the full name of the font.
|
java.lang.String |
getNotice() |
java.lang.String |
getPostScriptName()
Returns the PostScript name of the font.
|
java.lang.String |
getSubFamilyName()
Returns the font sub family name of the font.
|
int |
getWeightClass()
Returns the weight class of this font.
|
static TTFFile |
open(java.io.File file)
Reads a TTF file
|
static TTFFile |
open(java.io.InputStream is)
Reads a TTF file from an InputStream
|
public static TTFFile open(java.io.File file) throws java.io.IOException
file - The font filejava.io.IOException - if an IO error occurspublic static TTFFile open(java.io.InputStream is) throws java.io.IOException
is - InputStream to read fromjava.io.IOException - if an IO error occurspublic java.util.Set<java.lang.String> getFamilyNames()
public java.lang.String getFullName()
public java.lang.String getNotice()
public java.lang.String getPostScriptName()
public java.lang.String getSubFamilyName()
public int getWeightClass()