CFFType1Font.java (pdfbox-2.0.23-src) | : | CFFType1Font.java (pdfbox-2.0.24-src) | ||
---|---|---|---|---|
skipping to change at line 208 | skipping to change at line 208 | |||
} | } | |||
// helper for looking up keys/values | // helper for looking up keys/values | |||
private Object getProperty(String name) | private Object getProperty(String name) | |||
{ | { | |||
Object topDictValue = topDict.get(name); | Object topDictValue = topDict.get(name); | |||
if (topDictValue != null) | if (topDictValue != null) | |||
{ | { | |||
return topDictValue; | return topDictValue; | |||
} | } | |||
Object privateDictValue = privateDict.get(name); | return privateDict.get(name); | |||
if (privateDictValue != null) | ||||
{ | ||||
return privateDictValue; | ||||
} | ||||
return null; | ||||
} | } | |||
private int getDefaultWidthX() | private int getDefaultWidthX() | |||
{ | { | |||
Number num = (Number)getProperty("defaultWidthX"); | Number num = (Number)getProperty("defaultWidthX"); | |||
if (num == null) | if (num == null) | |||
{ | { | |||
return 1000; | return 1000; | |||
} | } | |||
return num.intValue(); | return num.intValue(); | |||
End of changes. 1 change blocks. | ||||
6 lines changed or deleted | 1 lines changed or added |