11/14/2022 0 Comments Jameel noori nastaleeq urdu fonts![]() farabicBold = new (basefontArabic, 12, ) farabicNormal = new (basefontArabic, 10, ) Here is an example to create an Order in Arabic is the same for Urdu BaseFont basefontArabic = BaseFont.CreateFont("c:\\\\windows\\\\fonts\\\\TIMES.ttf", BaseFont.IDENTITY_H, true) To write in Arabic I use the following font: ![]() Update: Setting cell.ArabicOptions = ColumnText.DIGITS_EN2AN does render font in my desired font but does not any other text. PdfPCell cell = new PdfPCell(new Phrase(10, str, el.Font)) Table.RunDirection = PdfWriter.RUN_DIRECTION_RTL string fontpath = Environment.GetEnvironmentVariable("SystemRoot") "\\fonts\\times.ttf" īaseFont basefont = BaseFont.CreateFont(fontpath, BaseFont.IDENTITY_H, BaseFont.EMBEDDED) String fontpath = Environment.GetEnvironmentVariable("SystemRoot") "\\fonts\\Jameel Noori Nastaleeq.ttf" ![]() PdfWriter writer = PdfWriter.GetInstance(document, new System.IO.FileStream("C:\\iTextSharpHelloworld.pdf", System.IO.FileMode.Create)) It shows text when I use built-in forms like times.ttf etc.Ĭode is given below: private void button1_Click(object sender, EventArgs e) I am using custom Urdu Font Jameel Noori Nastaleeq with iTextSharp but it is not showing text at all. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |