Jump to content
We've recently updated our Privacy Statement, available here ×

Cyrillic problem: character superimposed


2004 IR Help

Recommended Posts

By: Herve - hguidetti

Cyrillic problem: character superimposed

2004-12-06 08:22

Hi all,

 

I have a little problem using cyrillic character.

I use Ireport 0.4.0 and Jasper 0.6.1.

 

I have a parameter that contains Cyrillic characters(in unicode). The "element properties" are set with PDFEncoding=Cp1251 (Cyrillic).

 

When it displays the text, all the characters are superimposed.

 

Is that a bug ?

How can I display cyrillic characters correctly ?

 

Thanks for your help.

HervéŠ

 

 

 

 

By: Herve - hguidetti

RE: Cyrillic problem: character superimposed

2004-12-07 04:48

Hi,

I have found the solution to my problem. I have to embed the font (arial in that case) in PDF file.

 

 

I have modified the JRXML to set the pdfFont

<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" lineSpacing="Single">

 

<font fontName="Arial" pdfFontName="/com/company/foo/bar/arial.ttf" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Cp1252" isStrikeThrough="false" />

 

</textElement>

 

In fact, I have created a Report font and I use it.

 

Herv銉

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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