bangla-font

Bangla words are broken while writing in a PDF file

Bangla words are broken while writing in a PDF file Question: I am generating a PDF file from CSV file. While I tried to write BANGLA language it just broke the words. Here is my code: from fpdf import FPDF pdf = FPDF(orientation=’L’, unit=’mm’, format=’A5′) pdf.add_page() pdf.add_font(‘kalpurush’,”,’fileLocation/kalpurush.ttf’, uni=True) pdf.set_font(‘kalpurush’,”,18) pdf.set_xy(10,10) pdf.set_text_color(0, 0, 0) pdf.cell(w = …

Total answers: 1