-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got Issue with Font Khmer Unicode. #206
Comments
Hi @ezzhop Note that |
Hi @Lucas-C and also got an error message. I hope got a solution about this, Thank in advance. |
Hi @ezzhop! 😊 If you have an issue with Please take care to provide a minimal reproducing example, including mention of where to find the TTF font files used: https://stackoverflow.com/help/minimal-reproducible-example from fpdf import FPDF
pdf = FPDF()
txt = """..."""
self.add_font(fname='font/KhmerOSMuol.ttf')
self.set_font("KhmerOSMuol", size=12)
self.multi_cell(60, 5, txt)
pdf.output("khmer-rendering-issue.pdf") Also, please understand that neither me nor other
|
I have add_font with the code below:
` def chapter_body(self, name):
with open(name, 'rb') as fh:
txt = fh.read().decode('utf-8')
# set font
self.add_font('KhmerOS_content', fname='font/KhmerOS_content.ttf')
# self.add_font('content', 'B', fname='font/static/NotoSansKhmer/NotoSansKhmer-Bold.ttf')
self.set_font('KhmerOS_content','', size=12)
But it is working not properly (Not support Khmer characters)
You can find result with attachment for detail.
The text was updated successfully, but these errors were encountered: