long fileLastModified = -1;
if (fontCache != null) {
fileLastModified = fontFile.lastModified();
// firstly try and fetch it from cache before loading/parsing the font file
if (fontCache.containsFont(embedUrl)) {
CachedFontInfo fontInfo = fontCache.getFont(embedUrl);
if (fontInfo.lastModified() == fileLastModified) {
return fontInfo;
} else {
// out of date cache item
fontCache.removeFont(embedUrl);
}