Skip to content

Commit b38089a

Browse files
committed
PDFBOX-5660: DRY refactoring
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1922942 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7a8dd0f commit b38089a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fontbox/src/main/java/org/apache/fontbox/cff/CFFType1Font.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ public float getWidth(String name) throws IOException
7474
@Override
7575
public boolean hasGlyph(String name)
7676
{
77-
int sid = getCharset().getSID(name);
78-
int gid = getCharset().getGIDForSID(sid);
79-
return gid != 0;
77+
return nameToGID(name) != 0;
8078
}
8179

8280
/**

0 commit comments

Comments
 (0)