Skip to content

Commit

Permalink
CLDR-17736 Update approximate widths
Browse files Browse the repository at this point in the history
  • Loading branch information
macchiati committed Jun 16, 2024
1 parent 22afc9b commit d53cd8d
Show file tree
Hide file tree
Showing 2 changed files with 6,063 additions and 4,436 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,17 @@ private int getMetrics(int cp) {
// result = 1;
// adjusted.add(cp);
// }
if (result > 31 || result < -2) { // just to catch odd results
throw new IllegalArgumentException("Value too large " + result);
if (result > 31 || result < 0) { // just to catch odd results
System.out.println(
"Code point: "
+ Utility.hex(cp)
+ "; Value out of bounds (0..31)"
+ result);
if (result > 31) {
result = 31;
} else if (result < 0) {
result = 0;
}
}
return result;
}
Expand Down
Loading

0 comments on commit d53cd8d

Please sign in to comment.