Skip to content

Commit

Permalink
PDFBOX-5660: DRY refactoring
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1922942 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
lehmi committed Jan 7, 2025
1 parent 7a8dd0f commit b38089a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ public float getWidth(String name) throws IOException
@Override
public boolean hasGlyph(String name)
{
int sid = getCharset().getSID(name);
int gid = getCharset().getGIDForSID(sid);
return gid != 0;
return nameToGID(name) != 0;
}

/**
Expand Down

0 comments on commit b38089a

Please sign in to comment.