0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 278 };
InputStream font = this.getClass().getResourceAsStream(
"subset_type1_valid.font");
Type1MetricHelper helper = new Type1MetricHelper(font, length1, length2,
FONT_DICTIONARY_VALUE_ENCODING_WIN);
helper.parse();
for (int i = 0; i < (last - first + 1); ++i) {
if (widths[i] != 0) {
System.out.println(widths[i] + " " + helper.getWidth(first + i));
assertTrue(widths[i] == helper.getWidth(first + i));
}
}
// ---- Missing Glyph returns notdef width 278 in the tested font
assertTrue(helper.getWidth(200) == 278);
}