"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "fontbox/src/main/java/org/apache/fontbox/ttf/TTFSubsetter.java" between
pdfbox-2.0.23-src.zip and pdfbox-2.0.24-src.zip

About: Apache PDFBox is a Java PDF library tool that allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents.

TTFSubsetter.java  (pdfbox-2.0.23-src):TTFSubsetter.java  (pdfbox-2.0.24-src)
skipping to change at line 718 skipping to change at line 718
writeUint32(out, 12); // offset 4 * 2 + 4 writeUint32(out, 12); // offset 4 * 2 + 4
// build Format 4 subtable (Unicode BMP) // build Format 4 subtable (Unicode BMP)
Iterator<Entry<Integer, Integer>> it = uniToGID.entrySet().iterator(); Iterator<Entry<Integer, Integer>> it = uniToGID.entrySet().iterator();
Entry<Integer, Integer> lastChar = it.next(); Entry<Integer, Integer> lastChar = it.next();
Entry<Integer, Integer> prevChar = lastChar; Entry<Integer, Integer> prevChar = lastChar;
int lastGid = getNewGlyphId(lastChar.getValue()); int lastGid = getNewGlyphId(lastChar.getValue());
// +1 because .notdef is missing in uniToGID // +1 because .notdef is missing in uniToGID
int[] startCode = new int[uniToGID.size()+1]; int[] startCode = new int[uniToGID.size()+1];
int[] endCode = new int[uniToGID.size()+1]; int[] endCode = new int[startCode.length];
int[] idDelta = new int[uniToGID.size()+1]; int[] idDelta = new int[startCode.length];
int segCount = 0; int segCount = 0;
while(it.hasNext()) while(it.hasNext())
{ {
Entry<Integer, Integer> curChar2Gid = it.next(); Entry<Integer, Integer> curChar2Gid = it.next();
int curGid = getNewGlyphId(curChar2Gid.getValue()); int curGid = getNewGlyphId(curChar2Gid.getValue());
// todo: need format Format 12 for non-BMP // todo: need format Format 12 for non-BMP
if (curChar2Gid.getKey() > 0xFFFF) if (curChar2Gid.getKey() > 0xFFFF)
{ {
throw new UnsupportedOperationException("non-BMP Unicode charact er"); throw new UnsupportedOperationException("non-BMP Unicode charact er");
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)