1 51 package org.apache.fop.fonts; 52 53 57 public class TTFCmapEntry { 58 public int unicodeStart; 59 public int unicodeEnd; 60 public int glyphStartIndex; 61 62 TTFCmapEntry() { 63 unicodeStart = 0; 64 unicodeEnd = 0; 65 glyphStartIndex = 0; 66 } 67 68 TTFCmapEntry(int unicodeStart, int unicodeEnd, int glyphStartIndex) { 69 this.unicodeStart = unicodeStart; 70 this.unicodeEnd = unicodeEnd; 71 this.glyphStartIndex = glyphStartIndex; 72 } 73 74 public boolean equals(Object o) { 75 if (o instanceof TTFCmapEntry) { 76 TTFCmapEntry ce = (TTFCmapEntry)o; 77 if (ce.unicodeStart == this.unicodeStart 78 && ce.unicodeEnd == this.unicodeEnd 79 && ce.glyphStartIndex == this.glyphStartIndex) 80 return true; 81 } 82 return false; 83 } 84 85 } 86 | Popular Tags |