PR #1482 added a non working Map.get request to TrueTypeFont.getMetricsTT, because "cmap05" has String keys, but the get tries a int. In the result, it could only return null.
Found by Eclipse IDE (Unlikely argument type int for get(Object) on a Map<String,int[]>) and SpotBugs (GC_UNRELATED_TYPES - Integer is incompatible with expected argument type String in org.openpdf.text.pdf.TrueTypeFont.getMetricsTT(int)).
PR #1482 added a non working Map.get request to TrueTypeFont.getMetricsTT, because "cmap05" has String keys, but the get tries a int. In the result, it could only return null.
Found by Eclipse IDE (Unlikely argument type int for get(Object) on a Map<String,int[]>) and SpotBugs (GC_UNRELATED_TYPES - Integer is incompatible with expected argument type String in org.openpdf.text.pdf.TrueTypeFont.getMetricsTT(int)).