Jump to content
  • artf 1370, lines cannot be correctly aligned to box or bordered frame


    takashi
    Assigned User teodord
    CategoryBug report
    PriorityLow
    ReproducibilityAlways
    ResolutionFixed
    SeverityTrivial
    StatusClosed

    Original Bug, artf1370

    http://www.jasperforge.org/sf/go/artf1370

     

    Patch helps to fix alignment issue of artf1370

     

    Modified

    JRPdfExporter.java

    JRGraphics2DExporter.java

    JRRtfExporter.java

     

    Codes have been tested against thin_align_errors.xml


    Attachments: artf1370.diff

    User Feedback

    Recommended Comments

     

    Hi,

     

    In JR 2.0.3 modifications were made to support rendering lines of any width and style combination.

    However, this problem that you tried to fix was not tackled.

    Actually, we think this is not a bug and the explanation is the following.

    Borders are drawn half inside the element and half on the outside. Line elements however, are elements in their own right and cannot be thinner that 1 pixel. Vertical and horizontal lines are rendered in the middle of the pixel and cannot align with borders.

     

    We do not recommend using line elements to draw borders. The box border around elements should be used, as borders always align with each other.

    We are not going to change this.

     

    Maybe in the future, new properties will be added to the line element in order to control the way the line is rendered in respect to that 1 pixel, for vertical and horizontal lines.

     

    Thank you,

    Teodor

     

    Link to comment
    Share on other sites


×
×
  • Create New...