[jira] [Updated] (FOP-2678) [PATCH] FOPGVTGlyphVector.getGlyphOutline returns just glyph bounding box
[ https://issues.apache.org/jira/browse/FOP-2678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Lim updated FOP-2678: -- Attachment: FOP-2678-2.patch FOP-2678-2 fixes FOP-2678 offset issues. I can't see anyway to avoid loading AWT fonts to get outline shapes. > [PATCH] FOPGVTGlyphVector.getGlyphOutline returns just glyph bounding box > - > > Key: FOP-2678 > URL: https://issues.apache.org/jira/browse/FOP-2678 > Project: FOP > Issue Type: Bug >Affects Versions: trunk >Reporter: Jan Tošovský > Attachments: diagram.svg, FOP-2678-2.patch, FOP-2678.patch, > FOP-2678-tests.patch > > > The following method returns just glyph bounding box, not a glyph shape: > {code:java} > public Shape getGlyphOutline(int glyphIndex) { > Shape glyphBox = getBoundingBoxes()[glyphIndex]; > AffineTransform tr = > AffineTransform.getTranslateInstance(positions[glyphIndex * 2], > positions[glyphIndex * 2 + 1]); > AffineTransform glyphTransform = getGlyphTransform(glyphIndex); > if (glyphTransform != null) { > tr.concatenate(glyphTransform); > } > return tr.createTransformedShape(glyphBox); > } > {code} > This convenient method hence cannot be used properly to address e.g. > https://issues.apache.org/jira/browse/FOP-2677 -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (FOP-2678) [PATCH] FOPGVTGlyphVector.getGlyphOutline returns just glyph bounding box
[ https://issues.apache.org/jira/browse/FOP-2678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Lim updated FOP-2678: -- Attachment: diagram.svg Patch fails for diagram.svg. Looks like we need to account for some offset GlyphVector.getGlyphOutline(glyphIndex) > [PATCH] FOPGVTGlyphVector.getGlyphOutline returns just glyph bounding box > - > > Key: FOP-2678 > URL: https://issues.apache.org/jira/browse/FOP-2678 > Project: FOP > Issue Type: Bug >Affects Versions: trunk >Reporter: Jan Tošovský > Attachments: diagram.svg, FOP-2678.patch, FOP-2678-tests.patch > > > The following method returns just glyph bounding box, not a glyph shape: > {code:java} > public Shape getGlyphOutline(int glyphIndex) { > Shape glyphBox = getBoundingBoxes()[glyphIndex]; > AffineTransform tr = > AffineTransform.getTranslateInstance(positions[glyphIndex * 2], > positions[glyphIndex * 2 + 1]); > AffineTransform glyphTransform = getGlyphTransform(glyphIndex); > if (glyphTransform != null) { > tr.concatenate(glyphTransform); > } > return tr.createTransformedShape(glyphBox); > } > {code} > This convenient method hence cannot be used properly to address e.g. > https://issues.apache.org/jira/browse/FOP-2677 -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (FOP-2678) [PATCH] FOPGVTGlyphVector.getGlyphOutline returns just glyph bounding box
[ https://issues.apache.org/jira/browse/FOP-2678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Tošovský updated FOP-2678: -- Summary: [PATCH] FOPGVTGlyphVector.getGlyphOutline returns just glyph bounding box (was: FOPGVTGlyphVector.getGlyphOutline returns just glyph bounding box) > [PATCH] FOPGVTGlyphVector.getGlyphOutline returns just glyph bounding box > - > > Key: FOP-2678 > URL: https://issues.apache.org/jira/browse/FOP-2678 > Project: FOP > Issue Type: Bug >Affects Versions: trunk >Reporter: Jan Tošovský > Attachments: FOP-2678.patch > > > The following method returns just glyph bounding box, not a glyph shape: > {code:java} > public Shape getGlyphOutline(int glyphIndex) { > Shape glyphBox = getBoundingBoxes()[glyphIndex]; > AffineTransform tr = > AffineTransform.getTranslateInstance(positions[glyphIndex * 2], > positions[glyphIndex * 2 + 1]); > AffineTransform glyphTransform = getGlyphTransform(glyphIndex); > if (glyphTransform != null) { > tr.concatenate(glyphTransform); > } > return tr.createTransformedShape(glyphBox); > } > {code} > This convenient method hence cannot be used properly to address e.g. > https://issues.apache.org/jira/browse/FOP-2677 -- This message was sent by Atlassian JIRA (v6.3.4#6332)