Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- new unit tests, a code formatter (`black`) and a linter (`pylint`) to improve code quality
### Changed
- the documentation URL is now simply https://alexanderankin.github.io/pyfpdf/
### Fixed
- user defined path to font was ignored in `add_font` when `uni=True` - thanks @xitrushiy!
### Removed
- dropped support for external font definitions in `.font` Python files, that relied on a call to `exec`
### Deprecated
Expand All @@ -24,7 +26,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Modified
* [Making FPDF.output() x100 time faster by using a bytearray buffer](https://github.com/reingart/pyfpdf/pull/164)
* [Deprecating .rotate() and introducing .rotation() context manager](https://github.com/reingart/pyfpdf/pull/161)
* Fix user's font path ([issue](https://github.com/reingart/pyfpdf/issues/166) [pr](https://github.com/alexanderankin/pyfpdf/pull/14))
### Fixed
* [Fixing #159 issue with set_link + adding GitHub Actions pipeline & badges](https://github.com/reingart/pyfpdf/pull/160)
* `User defined path to font is ignored`
Expand Down
2 changes: 1 addition & 1 deletion fpdf/fpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def add_font(self, family, style="", fname=None, uni=False):
"up": font_dict["up"],
"ut": font_dict["ut"],
"cw": font_dict["cw"],
"ttffile": font_dict["ttffile"],
"ttffile": ttffilename,
"fontkey": fontkey,
"subset": sbarr,
"unifilename": unifilename,
Expand Down