spadged / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

GridColumn headers do not show correct unicode characters #262

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I'm trying to add a grid, with unicode header text, to PDF. Example,

pdf.setFont(new ArialUnicodeMS(CidInfo.KOREAN), 16);
gridColumn = new GridColumn ("소비 갭에 소요 사항", "data1", 200, 
Align.CENTER, Align.RIGHT);

What is the expected output? What do you see instead?
I expect to see a grid with a single column, with the correct Korean header. 
Instead, what I see is garbage text. I've also tried setting the font before 
the grid is added to the PDF, however, it shows incorrect Korean characters.

What version of the product are you using? On what operating system?
I'm running on Windows 7 (32-bit) Professional. 

Please provide any additional information below.

Using the pdf.addText() API, displays the correct Korean text. Unfortunately, 
I'm having no luck with the gridColumn API, where I pass it a unicode text as 
the column header!

Original issue reported on code.google.com by WaelTha...@gmail.com on 20 Jul 2010 at 1:53