private void buildFont(AFMFile afm, PFMFile pfm) {
if (afm == null && pfm == null) {
throw new IllegalArgumentException("Need at least an AFM or a PFM!");
}
singleFont = new SingleByteFont();
singleFont.setFontType(FontType.TYPE1);
singleFont.setResolver(this.resolver);
if (this.embedded) {
singleFont.setEmbedFileName(this.fontFileURI);
}