Open
Description
When embedding fonts in the PDF, setting PDFGraphics2D.EMBED_FONTS to true, they get flipped upside down. After testing (I'm not competent in Java Graphics), I found the protected void writeString(String str, double x, double y) method in the PDFGraphics2D.java source in the freehep-graphicsio-pdf project to be the cause.
The line
// mirror the matrix
at.scale(1, -1);
seems to do the flipping, which works fine for non-ebedded fonts, but scales embedded fonts upside down.
I've modified that line that nows is:
// mirror the matrix
if (PDFFontIncluder.isStandardFont(getFont()))
at.scale(1, -1);
and from initial testing it seems to be working.
Has anybody experienced the issue, and has any clue as to how to effectively solve it correctly?
Metadata
Metadata
Assignees
Labels
No labels