Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 18 package org.apache.batik.svggen.font.table; 19 20 import java.io.ByteArrayInputStream ; 21 22 26 public abstract class GlyfDescript extends Program implements GlyphDescription { 27 28 public static final byte onCurve = 0x01; 30 public static final byte xShortVector = 0x02; 31 public static final byte yShortVector = 0x04; 32 public static final byte repeat = 0x08; 33 public static final byte xDual = 0x10; 34 public static final byte yDual = 0x20; 35 36 protected GlyfTable parentTable; 37 private int numberOfContours; 38 private short xMin; 39 private short yMin; 40 private short xMax; 41 private short yMax; 42 43 protected GlyfDescript(GlyfTable parentTable, short numberOfContours, ByteArrayInputStream bais) { 44 this.parentTable = parentTable; 45 this.numberOfContours = numberOfContours; 46 xMin = (short)(bais.read()<<8 | bais.read()); 47 yMin = (short)(bais.read()<<8 | bais.read()); 48 xMax = (short)(bais.read()<<8 | bais.read()); 49 yMax = (short)(bais.read()<<8 | bais.read()); 50 } 51 52 public int getNumberOfContours() { 53 return numberOfContours; 54 } 55 56 public short getXMaximum() { 57 return xMax; 58 } 59 60 public short getXMinimum() { 61 return xMin; 62 } 63 64 public short getYMaximum() { 65 return yMax; 66 } 67 68 public short getYMinimum() { 69 return yMin; 70 } 71 } 72
| Popular Tags
|