Skip to content

Commit

Permalink
Fix font name calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Sep 2, 2024
1 parent b482020 commit 10cb7f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ private List<CosUnicodeName> getResourcesNames() {
for (ASAtom fontName : resources.getFontNames()) {
PDFont font = resources.getFont(fontName);
if (font != null) {
String name = font.getName();
ASAtom name = font.getNameKey(ASAtom.BASE_FONT);
if (name != null) {
names.add(new GFCosUnicodeName((COSName) COSName.construct(ASAtom.getASAtom(name)).get()));
names.add(new GFCosUnicodeName((COSName) COSName.construct(name).get()));
}
}
}
Expand Down

0 comments on commit 10cb7f0

Please sign in to comment.