/** * The flags are run-length encoded. */ private void readFlags(int flagCount, TTFDataStream bais) throws IOException { for (int index = 0; index < flagCount; index++) { flags[index] = (byte) bais.readUnsignedByte(); if ((flags[index] & REPEAT) != 0) { int repeats = bais.readUnsignedByte(); for (int i = 1; i <= repeats && index + i < flags.length; i++) { flags[index + i] = flags[index]; } index += repeats; } } } }
x += (short) bais.readUnsignedByte(); x += (short) -((short) bais.readUnsignedByte()); y += (short) bais.readUnsignedByte(); y += (short) -((short) bais.readUnsignedByte());
for (int i = 0; i < maxIndex - WGL4Names.NUMBER_OF_MAC_GLYPHS + 1; i++) int numberOfChars = data.readUnsignedByte(); nameArray[i] = data.readString(numberOfChars);
/** * The flags are run-length encoded. */ private void readFlags(int flagCount, TTFDataStream bais) throws IOException { for (int index = 0; index < flagCount; index++) { flags[index] = (byte) bais.readUnsignedByte(); if ((flags[index] & REPEAT) != 0) { int repeats = bais.readUnsignedByte(); for (int i = 1; i <= repeats; i++) { flags[index + i] = flags[index]; } index += repeats; } } } }
/** * The flags are run-length encoded. */ private void readFlags(int flagCount, TTFDataStream bais) throws IOException { for (int index = 0; index < flagCount; index++) { flags[index] = (byte) bais.readUnsignedByte(); if ((flags[index] & REPEAT) != 0) { int repeats = bais.readUnsignedByte(); for (int i = 1; i <= repeats && index + i < flags.length; i++) { flags[index + i] = flags[index]; } index += repeats; } } } }
x += (short) bais.readUnsignedByte(); x += (short) -((short) bais.readUnsignedByte()); y += (short) bais.readUnsignedByte(); y += (short) -((short) bais.readUnsignedByte());
x += (short) bais.readUnsignedByte(); x += (short) -((short) bais.readUnsignedByte()); y += (short) bais.readUnsignedByte(); y += (short) -((short) bais.readUnsignedByte());
for (int i = 0; i < maxIndex - WGL4Names.NUMBER_OF_MAC_GLYPHS + 1; i++) int numberOfChars = data.readUnsignedByte(); nameArray[i] = data.readString(numberOfChars);
for (int i = 0; i < maxIndex - WGL4Names.NUMBER_OF_MAC_GLYPHS + 1; i++) int numberOfChars = data.readUnsignedByte(); nameArray[i] = data.readString(numberOfChars);