Jan Tošovský created FOP-2678:

             Summary: 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ý

The following method returns just glyph bounding box, not a glyph shape:
    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) {
        return tr.createTransformedShape(glyphBox);

This convenient method hence cannot be used properly to address e.g.

This message was sent by Atlassian JIRA

Reply via email to