类 GlyfEncoder
java.lang.Object
com.google.typography.font.tools.conversion.eot.GlyfEncoder
- 作者:
- Raph Levien Implementation of compression of CTF glyph data, as per sections 5.6-5.10 and 6 of the spec.
-
字段概要
字段修饰符和类型字段说明private final ByteArrayOutputStreamprivate final booleanprivate final ByteArrayOutputStreamprivate final ByteArrayOutputStream -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidprivate voidencodePushSequence(OutputStream os, List<Integer> data) byte[]byte[]byte[]private voidSplit the instructions into a push sequence and the remainder of the instructions.(专用程序包) static voidwrite255Short(OutputStream os, int value) (专用程序包) static voidwrite255UShort(OutputStream os, int value) private voidprivate voidwriteGlyph(Glyph glyph) private voidwriteInstructions(Glyph glyph) private voidwriteSimpleGlyph(SimpleGlyph glyph) (专用程序包) voidwriteTriplet(OutputStream os, boolean onCurve, int x, int y) private voidwriteUShort(int value)
-
字段详细资料
-
doPush
private final boolean doPush -
glyfStream
-
pushStream
-
codeStream
-
-
构造器详细资料
-
GlyfEncoder
public GlyfEncoder(boolean doPush) -
GlyfEncoder
public GlyfEncoder()
-
-
方法详细资料
-
encode
-
writeGlyph
-
writeInstructions
- 抛出:
IOException
-
writeSimpleGlyph
- 抛出:
IOException
-
writeCompositeGlyph
- 抛出:
IOException
-
writeUShort
private void writeUShort(int value) -
write255UShort
- 抛出:
IOException
-
write255Short
- 抛出:
IOException
-
writeTriplet
- 抛出:
IOException
-
splitPush
Split the instructions into a push sequence and the remainder of the instructions. Writes both streams, and the counts to the glyfStream. As per section 6.2.1 of the spec.- 参数:
glyph- the glyph to split- 抛出:
IOException
-
encodePushSequence
- 抛出:
IOException
-
getGlyfBytes
public byte[] getGlyfBytes() -
getPushBytes
public byte[] getPushBytes() -
getCodeBytes
public byte[] getCodeBytes()
-