Rammohan0504 commited on
Commit
bb7a722
·
verified ·
1 Parent(s): 12810ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -122,6 +122,7 @@ def generate_pdf(report_html):
122
  pdf.add_page()
123
 
124
  # Add a custom font (download a TTF font that supports Unicode characters and emojis)
 
125
  # Make sure to have the TTF file in your project and pass it as an argument to add_font
126
  try:
127
  pdf.add_font('ArialUnicode', '', '/path/to/ArialUnicodeMS.ttf', uni=True)
 
122
  pdf.add_page()
123
 
124
  # Add a custom font (download a TTF font that supports Unicode characters and emojis)
125
+ # Here, 'Arial Unicode MS' is used as an example, but you can use any font supporting emojis
126
  # Make sure to have the TTF file in your project and pass it as an argument to add_font
127
  try:
128
  pdf.add_font('ArialUnicode', '', '/path/to/ArialUnicodeMS.ttf', uni=True)