Skip to content

Commit

Permalink
PDFBOX-5920: use name of glyph
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1922939 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
lehmi committed Jan 7, 2025
1 parent 134e202 commit 7a8dd0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ public float getStringWidth(String string) throws IOException
{
int codePoint = string.codePointAt(i);
String name = getGlyphList().codePointToName(codePoint);
if (!cffFont.hasGlyph(string))
if (!cffFont.hasGlyph(name))
{
throw new IllegalArgumentException(
String.format("U+%04X ('%s') is not available in font %s",
Expand Down

0 comments on commit 7a8dd0f

Please sign in to comment.