Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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