We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ccfa77 commit b8eb725Copy full SHA for b8eb725
1 file changed
src/main/java/org/verapdf/pd/font/truetype/TrueTypeFontProgram.java
@@ -126,6 +126,9 @@ public float getWidth(int code) {
126
width = getWidth(TrueTypePredefined.NOTDEF_STRING);
127
}
128
if (width == -1) {
129
+ if (this.parser.getCmapParser() == null) {
130
+ return 0;
131
+ }
132
int gid = this.parser.getCmapParser().getGID(code);
133
return getWidthWithCheck(gid);
134
@@ -221,6 +224,9 @@ private float getWidthSymbolic(int code) {
221
224
gid = cmap10.getGlyph(code);
222
225
223
226
227
228
229
230
gid = this.parser.getCmapParser().getGID(code);
231
232
0 commit comments