if (primaryUUID != null && primaryUUID.startsWith("urn:uuid:")) {
resName = resName + "-" + primaryUUID.substring(9);
}
bds.getOutputStream().write(font.getSubsettedFont());
String folder = epub.getContentFolder() == null ? "" : epub.getContentFolder() + "/";
FontResource fontResource = epub.createFontResource(folder + "fonts/" + resName + ".otf", bds);
FontFaceRule face = styleResource.getStylesheet().createFontFace(fontResource);
face.set("font-family", new CSSQuotedString(entry.familyName));
switch (entry.weight) {
case FontPropertyConstants.WEIGHT_NORMAL:
face.set("font-weight", new CSSName("normal"));