Comments (5)
The fix has been merged into the master
branch of this repo, but not released yet.
You can install this unreleased latest version this way, if you want to test that this fix solves your initial problem:
pip install git+https://github.com/py-pdf/fpdf2.git@master
from fpdf2.
Thank you for the clear bug report @jsid72!
Seems like uharfbuzz.Font
does not like being deepcopied:
https://github.com/py-pdf/fpdf2/blob/2.7.7/fpdf/fonts.py#L275
There is some really minimal code reproducing this error:
from copy import deepcopy
import uharfbuzz as hb
font = hb.Font(hb.Face(hb.Blob.from_file_path('calibri.ttf')))
deepcopy(font)
from fpdf2.
I opened #1084 to fix this
Could you please review it @andersonhc?
from fpdf2.
@allcontributors please add @jsid72 for bug
from fpdf2.
I've put up a pull request to add @jsid72! 🎉
from fpdf2.
Related Issues (20)
- OSS-Fuzz Integration HOT 8
- multipage table using fpdf HOT 2
- Get rid of FPDF class/instance attributes getting passed to HTML2PDF. HOT 5
- Proposal for Generic Robust Substitution Mechanism HOT 1
- `local_context()` blocks appear to "leak" into one another HOT 6
- HTML: indent of lists on new line not flush HOT 5
- Line spacing for a long line that is displayed in several lines. HOT 5
- Text columns issue with top margin HOT 1
- Markdown not escaping MD special characters HOT 3
- Solution needed: Typographical Margins, Line Height, Leading HOT 1
- write_html() ignores font changes HOT 4
- call .write_html in footer cause RecursionError HOT 1
- pdf.font_style = "B" and pdf.emphasis = "BOLD" should behave the same way as pdf.set_font(style="B") HOT 1
- Lowercase hex (e.g. #fff) do not convert properly HOT 5
- Stampapdf HOT 3
- FPDF.unbreakable() drops table instead of adding page break beforehand HOT 1
- Determine string width before detecting the language of the string and applying this setting to the font shape engine leads to wrong get_string_width() HOT 2
- Escape character escaping multiple consecutive markdown characters HOT 3
- FlexTemplate multiline: It looks like that it puts space/newline between lines. Expected behavior? HOT 3
- Problem setting fallback font HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fpdf2.