You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Path path = glyph2D.getPathForCharacterCode(code); // -------> this may problem
Path path = new Path(glyph2D.getPathForCharacterCode(code)); //-------> fix like this. or better way.
I think
'path.transform(at.toMatrix());' transforms the path within the cache.
As a result, while the first character is rendered correctly, subsequent cached paths are transformed incorrectly, leading to issues.
The text was updated successfully, but these errors were encountered:
in PageDrawer.java --------------------------------------------------------------------
private void drawGlyph2D(Glyph2D glyph2D, PDFont font, int code, Vector displacement,
AffineTransform at) throws IOException
{
PDGraphicsState state = getGraphicsState();
RenderingMode renderingMode = state.getTextState().getRenderingMode();
// Path path = glyph2D.getPathForCharacterCode(code); // -------> this may problem
Path path = new Path(glyph2D.getPathForCharacterCode(code)); //-------> fix like this. or better way.
I think
'path.transform(at.toMatrix());' transforms the path within the cache.
As a result, while the first character is rendered correctly, subsequent cached paths are transformed incorrectly, leading to issues.
The text was updated successfully, but these errors were encountered: