1 31 package org.pdfbox.ttf; 32 33 import java.io.IOException ; 34 35 41 public class MaximumProfileTable extends TTFTable 42 { 43 46 public static final String TAG = "maxp"; 47 48 private float version; 49 private int numGlyphs; 50 private int maxPoints; 51 private int maxContours; 52 private int maxCompositePoints; 53 private int maxCompositeContours; 54 private int maxZones; 55 private int maxTwilightPoints; 56 private int maxStorage; 57 private int maxFunctionDefs; 58 private int maxInstructionDefs; 59 private int maxStackElements; 60 private int maxSizeOfInstructions; 61 private int maxComponentElements; 62 private int maxComponentDepth; 63 64 67 public int getMaxComponentDepth() 68 { 69 return maxComponentDepth; 70 } 71 74 public void setMaxComponentDepth(int maxComponentDepthValue) 75 { 76 this.maxComponentDepth = maxComponentDepthValue; 77 } 78 81 public int getMaxComponentElements() 82 { 83 return maxComponentElements; 84 } 85 88 public void setMaxComponentElements(int maxComponentElementsValue) 89 { 90 this.maxComponentElements = maxComponentElementsValue; 91 } 92 95 public int getMaxCompositeContours() 96 { 97 return maxCompositeContours; 98 } 99 102 public void setMaxCompositeContours(int maxCompositeContoursValue) 103 { 104 this.maxCompositeContours = maxCompositeContoursValue; 105 } 106 109 public int getMaxCompositePoints() 110 { 111 return maxCompositePoints; 112 } 113 116 public void setMaxCompositePoints(int maxCompositePointsValue) 117 { 118 this.maxCompositePoints = maxCompositePointsValue; 119 } 120 123 public int getMaxContours() 124 { 125 return maxContours; 126 } 127 130 public void setMaxContours(int maxContoursValue) 131 { 132 this.maxContours = maxContoursValue; 133 } 134 137 public int getMaxFunctionDefs() 138 { 139 return maxFunctionDefs; 140 } 141 144 public void setMaxFunctionDefs(int maxFunctionDefsValue) 145 { 146 this.maxFunctionDefs = maxFunctionDefsValue; 147 } 148 151 public int getMaxInstructionDefs() 152 { 153 return maxInstructionDefs; 154 } 155 158 public void setMaxInstructionDefs(int maxInstructionDefsValue) 159 { 160 this.maxInstructionDefs = maxInstructionDefsValue; 161 } 162 165 public int getMaxPoints() 166 { 167 return maxPoints; 168 } 169 172 public void setMaxPoints(int maxPointsValue) 173 { 174 this.maxPoints = maxPointsValue; 175 } 176 179 public int getMaxSizeOfInstructions() 180 { 181 return maxSizeOfInstructions; 182 } 183 186 public void setMaxSizeOfInstructions(int maxSizeOfInstructionsValue) 187 { 188 this.maxSizeOfInstructions = maxSizeOfInstructionsValue; 189 } 190 193 public int getMaxStackElements() 194 { 195 return maxStackElements; 196 } 197 200 public void setMaxStackElements(int maxStackElementsValue) 201 { 202 this.maxStackElements = maxStackElementsValue; 203 } 204 207 public int getMaxStorage() 208 { 209 return maxStorage; 210 } 211 214 public void setMaxStorage(int maxStorageValue) 215 { 216 this.maxStorage = maxStorageValue; 217 } 218 221 public int getMaxTwilightPoints() 222 { 223 return maxTwilightPoints; 224 } 225 228 public void setMaxTwilightPoints(int maxTwilightPointsValue) 229 { 230 this.maxTwilightPoints = maxTwilightPointsValue; 231 } 232 235 public int getMaxZones() 236 { 237 return maxZones; 238 } 239 242 public void setMaxZones(int maxZonesValue) 243 { 244 this.maxZones = maxZonesValue; 245 } 246 249 public int getNumGlyphs() 250 { 251 return numGlyphs; 252 } 253 256 public void setNumGlyphs(int numGlyphsValue) 257 { 258 this.numGlyphs = numGlyphsValue; 259 } 260 263 public float getVersion() 264 { 265 return version; 266 } 267 270 public void setVersion(float versionValue) 271 { 272 this.version = versionValue; 273 } 274 275 282 public void initData( TrueTypeFont ttf, TTFDataStream data ) throws IOException 283 { 284 version = data.read32Fixed(); 285 numGlyphs = data.readUnsignedShort(); 286 maxPoints = data.readUnsignedShort(); 287 maxContours = data.readUnsignedShort(); 288 maxCompositePoints = data.readUnsignedShort(); 289 maxCompositeContours = data.readUnsignedShort(); 290 maxZones = data.readUnsignedShort(); 291 maxTwilightPoints = data.readUnsignedShort(); 292 maxStorage = data.readUnsignedShort(); 293 maxFunctionDefs = data.readUnsignedShort(); 294 maxInstructionDefs = data.readUnsignedShort(); 295 maxStackElements = data.readUnsignedShort(); 296 maxSizeOfInstructions = data.readUnsignedShort(); 297 maxComponentElements = data.readUnsignedShort(); 298 maxComponentDepth = data.readUnsignedShort(); 299 } 300 } 301 | Popular Tags |