File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
fontbox/src/main/java/org/apache/fontbox/ttf Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -612,7 +612,7 @@ private byte[] buildGlyfTable(long[] newOffsets) throws IOException
612612 isResult );
613613 }
614614
615- long prevEnd = 0 ; // previously read glyph offset
615+ long lastOff = 0 ; // previously read glyph offset
616616 long newOffset = 0 ; // new offset for the glyph in the subset font
617617 int newGid = 0 ; // new GID in subset font
618618
@@ -623,11 +623,11 @@ private byte[] buildGlyfTable(long[] newOffsets) throws IOException
623623 long length = offsets [gid + 1 ] - offset ;
624624
625625 newOffsets [newGid ++] = newOffset ;
626- isResult = is .skip (offset - prevEnd );
626+ isResult = is .skip (offset - lastOff );
627627
628- if (Long .compare (isResult , offset - prevEnd ) != 0 )
628+ if (Long .compare (isResult , offset - lastOff ) != 0 )
629629 {
630- LOG .debug ("Tried skipping {} bytes but skipped only {} bytes" , offset - prevEnd ,
630+ LOG .debug ("Tried skipping {} bytes but skipped only {} bytes" , offset - lastOff ,
631631 isResult );
632632 }
633633
@@ -728,7 +728,7 @@ else if (buf.length > 0)
728728 newOffset += len ;
729729 }
730730
731- prevEnd = offset + length ;
731+ lastOff = offset + length ;
732732 }
733733 newOffsets [newGid ++] = newOffset ;
734734 }
You can’t perform that action at this time.
0 commit comments