}
private void populate ( List entries ) {
int i = 0;
+ int skipped = 0;
int n = entries.size();
int gidMax = -1;
int[] map = new int [ n ];
map [ i++ ] = gidMax = gid;
} else {
log.info ( "ignoring out of order or duplicate glyph index: " + gid );
+ skipped++;
}
} else {
throw new AdvancedTypographicTableFormatException ( "illegal glyph index: " + gid );
throw new AdvancedTypographicTableFormatException ( "illegal coverage entry, must be Integer: " + o );
}
}
- assert i == n;
+ assert ( i + skipped ) == n;
assert this.map == null;
this.map = map;
}