public class Type1SegSplitParser extends Object
https://adobe-type-tools.github.io/font-tech-notes/pdfs/T1_SPEC.pdf
| 构造器和说明 |
|---|
Type1SegSplitParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
indexOf(byte[] array,
byte[] target)
查找目标字节串偏移量
copy from guava from com.google.common.primitives.Bytes
|
static boolean |
isType1(byte[] raw)
判断是否是Type1 字体
|
static org.apache.fontbox.type1.Type1Font |
parse(byte[] raw)
尝试解析Type1 字体
|
static org.apache.fontbox.type1.Type1Font |
parse(InputStream in)
尝试解析Type1 字体
|
static byte[][] |
split(byte[] raw)
Tyep1 字体 格式分段
|
public static org.apache.fontbox.type1.Type1Font parse(byte[] raw)
throws IOException
raw - 字体IOException - IOEpublic static org.apache.fontbox.type1.Type1Font parse(InputStream in) throws IOException
in - 字体流IOException - IOEpublic static boolean isType1(byte[] raw)
raw - 字体内容public static byte[][] split(byte[] raw)
throws IOException
raw - 字体字节IOException - IO异常public static int indexOf(byte[] array,
byte[] target)
copy from guava from com.google.common.primitives.Bytes
array - 数组target - 查找目标Copyright © 2024. All rights reserved.