类 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 ByteArrayOutputStream
private final boolean
private final ByteArrayOutputStream
private final ByteArrayOutputStream
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
private void
encodePushSequence
(OutputStream os, List<Integer> data) byte[]
byte[]
byte[]
private void
Split the instructions into a push sequence and the remainder of the instructions.(专用程序包) static void
write255Short
(OutputStream os, int value) (专用程序包) static void
write255UShort
(OutputStream os, int value) private void
private void
writeGlyph
(Glyph glyph) private void
writeInstructions
(Glyph glyph) private void
writeSimpleGlyph
(SimpleGlyph glyph) (专用程序包) void
writeTriplet
(OutputStream os, boolean onCurve, int x, int y) private void
writeUShort
(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()
-