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

Fixing issue #1223: pdf.font_style now behaves like pdf.set_font #1254

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

smilerightnow
Copy link

@smilerightnow smilerightnow commented Sep 1, 2024

Fixes #1223

Checklist:

  • The GitHub pipeline is OK (green),
    meaning that both pylint (static code analyzer) and black (code formatter) are happy with the changes of this PR.

  • A unit test is covering the code added / modified by this PR

  • This PR is ready to be merged

  • [N/A] In case of a new feature, docstrings have been added, with also some documentation in the docs/ folder

  • A mention of the change is present in CHANGELOG.md

By submitting this pull request, I confirm that my contribution is made under the terms of the GNU LGPL 3.0 license.

@andersonhc
Copy link
Collaborator

Hi @smilerightnow
Pylint is failing on the file below

Run pylint fpdf test tutorial/tuto*.py
************* Module fpdf.fpdf
fpdf/fpdf.py:1946:0: C0303: Trailing whitespace (trailing-whitespace)```

removed 4 spaces for pylint
@smilerightnow
Copy link
Author

thanks @andersonhc for pointing it out, I removed the 4 spaces :)

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.

pdf.font_style = "B" and pdf.emphasis = "BOLD" should behave the same way as pdf.set_font(style="B")
2 participants