You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pymupdf-pro.rst
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -132,6 +132,20 @@ Initialize |PyMuPDF Pro| with a key as follows:
132
132
This will allow you to evaluate the product for a limited time. If you want to use |PyMuPDF Pro| after this time you should then `enquire about obtaining a commercial license <https://artifex.com/products/pymupdf-pro/>`_.
133
133
134
134
135
+
Fonts
136
+
-----------------------
137
+
138
+
By default `pymupdf.pro.unlock()` searches for all installed font directories.
139
+
140
+
This can be controlled with keyword-only args:
141
+
142
+
* `fontpath`: specific font directories, either as a list/tuple or `os.sep`-separated string.
143
+
If None (the default), we use `os.environ['PYMUPDFPRO_FONT_PATH']` if set.
144
+
* `fontpath_auto`: Whether to append system font directories.
145
+
If None (the default) we use true if `os.environ['PYMUPDFPRO_FONT_PATH_AUTO']` is '1'.
146
+
If true we append all system font directories.
147
+
148
+
Function `pymupdf.pro.get_fontpath()` returns a tuple of all font directories used by `unlock()`.
135
149
136
150
137
151
.. raw:: html
@@ -142,4 +156,4 @@ This will allow you to evaluate the product for a limited time. If you want to u
0 commit comments