org.apache.fop.fonts
Class CachedFontInfo
- Serializable
public class CachedFontInfo
Font info stored in the cache
static File | getFileFromUrls(String[] urls) - Returns a file given a list of urls
|
long | lastModified() - Gets the modified timestamp for font file (not always available)
|
void | setLastModified(long lastModified) - Gets the modified timestamp for font file
(used for the purposes of font info caching)
|
String | toString()
|
CachedFontInfo
public CachedFontInfo(String metricsFile,
boolean kerning,
List fontTriplets,
String embedFile,
long lastModified)
Default constructor
metricsFile
- metrics filekerning
- kerningfontTriplets
- font tripletsembedFile
- embed filelastModified
- timestamp that this font was last modified
CachedFontInfo
public CachedFontInfo(EmbedFontInfo fontInfo)
Constructor
fontInfo
- an existing embed font info
getFileFromUrls
public static File getFileFromUrls(String[] urls)
Returns a file given a list of urls
urls
- array of possible font urls
lastModified
public long lastModified()
Gets the modified timestamp for font file (not always available)
setLastModified
public void setLastModified(long lastModified)
Gets the modified timestamp for font file
(used for the purposes of font info caching)
lastModified
- modified font file timestamp
toString
public String toString()
- toString in interface EmbedFontInfo
- string representation of this object
java.lang.Object.toString()
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.