Skip to content

Commit

Permalink
fix: drawGlyph2D error
Browse files Browse the repository at this point in the history
  • Loading branch information
fww committed Feb 2, 2024
1 parent acf6425 commit 0965f5b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ private void drawGlyph2D(Glyph2D glyph2D, PDFont font, int code, Vector displace
PDGraphicsState state = getGraphicsState();
RenderingMode renderingMode = state.getTextState().getRenderingMode();

Path path = glyph2D.getPathForCharacterCode(code);
Path oldPath = glyph2D.getPathForCharacterCode(code);
Path path = new Path(oldPath);
if (path != null)
{
// Stretch non-embedded glyph if it does not match the height/width contained in the PDF.
Expand Down

0 comments on commit 0965f5b

Please sign in to comment.