FontFileReader fontFileReader = null;
if (fontFileContents != null) {
try {
fontFileReader = new FontFileReader(this, fontFileDescription, fontFileContents);
} catch (final IOException e) {
throw new FontException(e);
}
}
MetricsFileReader metricsFileReader = null;
if (metricsFileContents != null) {
try {
metricsFileReader = new MetricsFileReader(this, metricsFileDescription, metricsFileContents);
} catch (final IOException e) {
throw new FontException(e);
}
}
new RegisteredFont(this, fontID,
fontFileReader, metricsFileReader, collectionID, embed,
systemName);