public class TrueTypeFontPart extends AbstractFontPart
contentType, partName, relationships| Constructor and Description |
|---|
TrueTypeFontPart(PartName partName) |
| Modifier and Type | Method and Description |
|---|---|
PhysicalFont |
extract(String fontNameAsInTablePart,
String fontFileName,
String fontKey,
String filenamePrefix)
deObfuscate this font, and save it using fontName
|
void |
init() |
deleteEmbeddedFontTempFiles, finalize, getF, getTemporaryEmbeddedFontsDir, getTmpFontDir, setFgetBuffer, getBytes, getExternalTarget, isContentEqual, isLoaded, setBinaryData, setBinaryData, setBinaryData, writeDataToOutputStreamgetContentLengthAsLoaded, getOwningRelationshipPart, getPackage, getRelationshipType, getSourceRelationship, getSourceRelationships, getVersion, remove, rename, setContentLengthAsLoaded, setOwningRelationshipPart, setPackage, setPartShortcut, setRelationshipType, setSourceRelationship, setVersionaddTargetPart, addTargetPart, addTargetPart, addTargetPart, getContentType, getPartName, getRelationshipsPart, getRelationshipsPart, getUserData, reset, setContentType, setPartName, setRelationships, setUserDatapublic TrueTypeFontPart(PartName partName) throws InvalidFormatException
InvalidFormatExceptionpublic void init()
public PhysicalFont extract(String fontNameAsInTablePart, String fontFileName, String fontKey, String filenamePrefix)
extract in class AbstractFontPartfontNameAsInTablePart - - the name to save the font as. We
could read the font name from the deObfuscated data,
but FontLoader can't readily load from a byte array.fontKey - Copyright © 2007-2020. All Rights Reserved.