Skip to content

Commit cbeb7e4

Browse files
authored
Update font.rst
I think the argument filename was from a previous version of the software for v1.18.14 it is no longer a kwarg, so it should be fontfile if I am not mistaken!
1 parent 409f364 commit cbeb7e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/font.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ A Font object also contains useful general information, like the font bbox, the
4747

4848
If you have installed `pymupdf-fonts <https://pypi.org/project/pymupdf-fonts/>`_, there are also new "reserved" fontnames available, which are listed in :attr:`fitz_fonts` and in the table further down.
4949

50-
:arg str filename: the filename of a fontfile somewhere on your system [#f1]_.
50+
:arg str fontfile: the filename of a fontfile somewhere on your system [#f1]_.
5151
:arg bytes,bytearray,io.BytesIO fontbuffer: a fontfile loaded in memory [#f1]_.
5252
:arg in script: the number of a UCDN script. Currently supported in PyMuPDF are numbers 24, and 32 through 35.
5353
:arg str language: one of the values "zh-Hant" (traditional Chinese), "zh-Hans" (simplified Chinese), "ja" (Japanese) and "ko" (Korean). Otherwise, all ISO 639 codes from the subsets 1, 2, 3 and 5 are also possible, but are currently documentary only.

0 commit comments

Comments
 (0)