embedded = false;
builtinFont = true;
byte buf[] = new byte[1024];
try {
if (resourceAnchor == null)
resourceAnchor = new FontsResourceAnchor();
is = StreamUtil.getResourceStream(RESOURCE_PATH + afmFile + ".afm", resourceAnchor.getClass().getClassLoader());
if (is == null) {
String msg = MessageLocalization.getComposedMessage("1.not.found.as.resource", afmFile);
System.err.println(msg);
throw new DocumentException(msg);