1
BaseFont bfSpecial = BaseFont.createFont("get_font/verdana.ttf",BaseFont.IDENTITY_H, BaseFont.EMBEDDED);

Font my_font = new Font(bfSpecial, 9, Font.BOLD, BaseColor.BLACK);
    
document.add(new Paragraph("\n",my_font));
document.add(new Paragraph("*(₺₺₺₺₺)*",my_font));
document.add(new Paragraph("\n",my_font));

My Output
image

How to View the ₺ (Turkish Lira) sign on PDF?

mkl
  • 90,588
  • 15
  • 125
  • 265

1 Answers1

0

I finally solved the problem. I just had to use the font "DejaVuSerif.ttf" for the solution. you can download the font here

BaseFont bfSpecial = BaseFont.createFont("get_font/DejaVuSerif.ttf",BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
Font font = new Font(bfSpecial, 9, Font.NORMAL, BaseColor.BLACK);
  • In other words, your *verdana.ttf* simply does not contain a glyph for the ₺ (Turkish Lira) icon, and the solution is to use a font that does. – mkl Apr 12 '21 at 04:37
  • I can display the ₺ (Turkish Lira) icon with verdana.ttf in JTable. But I couldn't view it in a PDF. @mkl – Mustafa IŞIK Apr 12 '21 at 23:42
  • JTable apparently uses a replacement from another font. Itext on the other hand simply does what you tell it to. – mkl Apr 13 '21 at 04:58