Class Type1SegSplitParser
java.lang.Object
org.ofdrw.converter.font.type1.Type1SegSplitParser
将Type1 字体分段
https://adobe-type-tools.github.io/font-tech-notes/pdfs/T1_SPEC.pdf
- Since:
- 2021-10-24 16:44:53
- Author:
- 权观宇
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intindexOf(byte[] array, byte[] target) 查找目标字节串偏移量static booleanisType1(byte[] raw) 判断是否是Type1 字体static org.apache.fontbox.type1.Type1Fontparse(byte[] raw) 尝试解析Type1 字体static org.apache.fontbox.type1.Type1Fontparse(InputStream in) 尝试解析Type1 字体static byte[][]split(byte[] raw) Tyep1 字体 格式分段
-
Constructor Details
-
Type1SegSplitParser
public Type1SegSplitParser()
-
-
Method Details
-
parse
尝试解析Type1 字体- Parameters:
raw- 字体- Returns:
- Type1 字体或 null
- Throws:
IOException- IOE
-
parse
尝试解析Type1 字体- Parameters:
in- 字体流- Returns:
- Type1 字体或 null
- Throws:
IOException- IOE
-
isType1
public static boolean isType1(byte[] raw) 判断是否是Type1 字体- Parameters:
raw- 字体内容- Returns:
- true - type1 字体;false - 非 type1
-
split
Tyep1 字体 格式分段- Parameters:
raw- 字体字节- Returns:
- 分段或null
- Throws:
IOException- IO异常
-
indexOf
public static int indexOf(byte[] array, byte[] target) 查找目标字节串偏移量copy from guava from com.google.common.primitives.Bytes
- Parameters:
array- 数组target- 查找目标- Returns:
- 偏移量
-