Skip to content
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

added font arg in HTMLMixin component #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

boludo00
Copy link

This change allows you to supply a font argument when invoking the write_html method since it defaults to Times.

 class MyFPDF(FPDF, HTMLMixin):
     pass
 pdf = MyFPDF()
 pdf.add_page()
 pdf.write_html("THIS BETTER BE Arial and NOT Times", font_face="arial")
 pdf.output("simple.pdf")

@Eddiedigits
Copy link

What about font_size and line height?

@Lucas-C
Copy link

Lucas-C commented Jan 6, 2021

You may want to submit this PR against fpdf2, an actively maintained fork of pyfpdf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants