tccl Posted March 8, 2017 Share Posted March 8, 2017 Hello I need to generate a report with Jasper Repors with texts in several languages, like English, Russian, Japanese and Chinese. I create a Font Extension (Jasper) with Noto Sans, Noto Sans CJK JP Thin, Noto Sans CJK SC Thin and Noto Sans CJK TC Thin, with PDF Encoding Identity-H. When I generate a report, if doesn't contains japanese and chinese caracters, the report is fine. But if it contains these, the field with this font extension shows japanese and chinese caracters but it has much height, the text is centered vertically and only appears a line. I test several configurations but this is the result always. Can someone help me? Very Thanks. Regards. Link to comment Share on other sites More sharing options...
tccl Posted March 9, 2017 Author Share Posted March 9, 2017 I complete the post. Thanks. Link to comment Share on other sites More sharing options...
tccl Posted March 9, 2017 Author Share Posted March 9, 2017 The report has this textField: <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement stretchType="RelativeToBandHeight" x="53" y="0" width="502" height="15" backcolor="#E3D1D1" uuid="0fd0ce4d-6383-454b-b3b9-2758260f66f5"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="local_mesure_unitwidth" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="local_mesure_unitx" value="pixel"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> </reportElement> <textElement verticalAlignment="Middle"> <font fontName="GoogleFonts" size="11" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{reDescription}]]></textFieldExpression> </textField> where GoogleFonts is the font extension that i created. When the description doesn't contains japanese and chinese characters, it prints fine: https://drive.google.com/file/d/0B5Ck3qz3f5AvTThObDJrSnBLNEU/view?usp=sharing But if it contains them, the text appears like this: https://drive.google.com/file/d/0B5Ck3qz3f5AveFBNbDdiT1pMdkU/view The line covers all page, the text is centered and if text is large, it doesn't show lines, only the first. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now