Jump to content
Changes to the Jaspersoft community edition download ×

Problems with Google Noto Sans CJK in Jasper Report


tccl

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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:


 

But if it contains them, the text appears like this:

 


 

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

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...