JUNGU commited on
Commit
65f0a44
·
1 Parent(s): e03b603

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -23,15 +23,15 @@ def download_image(image_url):
23
  class PDF(FPDF):
24
  def __init__(self, *args, **kwargs):
25
  super().__init__(*args, **kwargs)
26
- self.set_font('Arial', 'B', 15)
27
 
28
  def chapter_title(self, num, label):
29
- self.set_font('Arial', 'B', 12)
30
  self.cell(0, 10, f"Chapter {num} : {label}", 0, 1, 'C')
31
  self.ln(10)
32
 
33
  def chapter_body(self, body, image_url):
34
- self.set_font('Arial', '', 12)
35
  self.multi_cell(0, 10, body)
36
  self.image(image_url, x=10, w=100)
37
  self.ln(60)
 
23
  class PDF(FPDF):
24
  def __init__(self, *args, **kwargs):
25
  super().__init__(*args, **kwargs)
26
+ self.set_font('/home/user/app/malgun.ttf', '', 12)
27
 
28
  def chapter_title(self, num, label):
29
+ self.set_font('/home/user/app/malgun.ttf', '', 15)
30
  self.cell(0, 10, f"Chapter {num} : {label}", 0, 1, 'C')
31
  self.ln(10)
32
 
33
  def chapter_body(self, body, image_url):
34
+ self.set_font('/home/user/app/malgun.ttf', '', 12)
35
  self.multi_cell(0, 10, body)
36
  self.image(image_url, x=10, w=100)
37
  self.ln(60)