Category: | Bug report |
Priority: | High |
Status: | Assigned |
Project: | Severity: | Major |
Resolution: | Open |
|
Component: | Reproducibility: | Always |
Assigned to: |
we already got support in iReport 1.3.2, but not in iReport 2.0.x
please check font names of TTC in FontListLoader.java:
OLD:
xxx.ttc
NEW:
xxx.ttc,0
String[] names = com.lowagie.text.pdf.BaseFont.enumerateTTCNames(file.getPath() + file.separator + files[i]);
for (int a = 0; a < names.length; a++) {
java.awt.Font f = fontMapper.pdfToAwt( com.lowagie.text.FontFactory.getFont( file.getPath() + file.separator + files[i] + "," + a).getBaseFont(), 10 );
if (f != null) {
fonts.addElement(new IRFont(f, files[i] + "," + a));
}
thanks
2 Comments:
in iReport2, we can find TTC font name in font name, but
not in PDF font name list.
i thank that we still need to modify something to generate PDF file with correct font.
the problem is PDF font name combobox that does not include the font name in TTC font.
if i have one A.ttc that includes two TTF font: X and Y,
PDF font name combobox should looks like below:
+------------+
|..... |
|X (A.ttc,0) |
|Y (A.ttc,1) |
|.... |
+------------+
thus, i can select X in combobox and render normally in generated PDF via changed code