public class ObfuscatedFontPart extends BinaryPart
contentType, partName, relationships
Constructor and Description |
---|
ObfuscatedFontPart(PartName partName) |
Modifier and Type | Method and Description |
---|---|
protected static void |
deleteEmbeddedFontTempFiles(String filenamePrefix) |
PhysicalFont |
deObfuscate(String fontNameAsInTablePart,
String fontFileName,
String fontKey,
String filenamePrefix)
deObfuscate this font, and save it using fontName
|
protected void |
finalize() |
static byte |
fromHexString(String hexStr) |
static String |
getTemporaryEmbeddedFontsDir() |
void |
init() |
getBuffer, getBytes, getExternalTarget, isContentEqual, isLoaded, setBinaryData, setBinaryData, setBinaryData, writeDataToOutputStream
getContentLengthAsLoaded, getOwningRelationshipPart, getPackage, getRelationshipType, getSourceRelationship, getSourceRelationships, getVersion, remove, rename, setContentLengthAsLoaded, setOwningRelationshipPart, setPackage, setPartShortcut, setRelationshipType, setSourceRelationship, setVersion
addTargetPart, addTargetPart, addTargetPart, addTargetPart, getContentType, getPartName, getRelationshipsPart, getRelationshipsPart, getUserData, reset, setContentType, setPartName, setRelationships, setUserData
public ObfuscatedFontPart(PartName partName) throws InvalidFormatException
InvalidFormatException
public static String getTemporaryEmbeddedFontsDir()
public void init()
public PhysicalFont deObfuscate(String fontNameAsInTablePart, String fontFileName, String fontKey, String filenamePrefix)
fontNameAsInTablePart
- - 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
- public static byte fromHexString(String hexStr)
protected static void deleteEmbeddedFontTempFiles(String filenamePrefix)
Copyright © 2007-2019. All Rights Reserved.