Jump to content
  • Chinese characters truncating


    ramanagoud_biradar
    CategoryBug report
    Component: 14539
    PriorityHigh
    ReproducibilityAlways
    ResolutionFixed
    SeverityMajor
    StatusClosed
    Versionv3.0.0

    Chinese characters are getting truncated on OpenJDK_1.8.0_191. On Analysis it was found that

     

    In Oracle JDK environment - reports are generating correctly.

     

    In Open JDK environment we suspect below differences.

     

    net.sf.jasperreports.engine.fill.TextMeasurer.java - LineBreakMeasurer.getPosition() is returning incorrect values.

    renderParagraph While lineMeasurer.getPosition() : 41 -- Working env

    renderParagraph While lineMeasurer.getPosition() : 68 -- non working env


    Attachments:

    User Feedback

    Recommended Comments

    Changed Resolution from Open to Fixed

    Changed Status from New to Closed


    Such issue is always with the OS fonts. All the PDF fonts including Chinese characters are mapped to OS fonts or the default PDF font in default.jasperreports.properties as below. We need to have these fonts installed in our OS. fc-list list the fonts in the server.net.sf.jasperreports.default.font.name=sansserifnet.sf.jasperreports.default.font.size=10net.sf.jasperreports.default.pdf.font.name=Helvetica
    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...