Is there any way, how to change default table's iTextSharp font and cell's color? I have a table, where I can change a font, but that would have to be done on every single cell - which is very unfortunate. Most probably there is a better way, but I haven't found it.
The reason I want to do this change is, that default font does not support Czech characters.
I have following code:
PdfPTable subTable = new PdfPTable(4);
Font bigFont = FontFactory.GetFont("c:\\windows\\fonts\\arial.ttf", BaseFont.IDENTITY_H, 8, Font.NORMAL, BaseColor.RED);
PdfPCell subCell = new PdfPCell(new Phrase("Bělení fáze 1",bigFont));
subCell.BackgroundColor = new BaseColor(196, 231, 234);
subTable.AddCell(subCell);
subTable.AddCell("Test");
First printed cell is going to have defined font - arial, as well as cell's color. Second cell will have all in default.
I also tried following command, but that did not help at all:
subTable.DefaultCell.Phrase = new Phrase() { Font = bigFont };
Thanks for any hints.