-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,48 @@ | ||
Metadata-Version: 1.1 | ||
Name: pymupdf_fonts | ||
Version: 1.0.1 | ||
Version: 1.0.3 | ||
Author: Jorj McKie | ||
Author-email: [email protected] | ||
License: SIL OFL V1.1 | ||
Maintainer: Jorj X. McKie | ||
Maintainer-email: [email protected] | ||
Home-page: https://github.com/pymupdf/pymupdf_fonts | ||
Download-url: https://github.com/pymupdf/pymupdf_fonts | ||
Summary: pymupdf_fonts is a collection of fonts to be used by PyMuPDF | ||
Description: | ||
Release date: July 31, 2020 | ||
Release date: March 10, 2021 | ||
|
||
Author | ||
====== | ||
|
||
* Jorj X. McKie | ||
|
||
Introduction | ||
============ | ||
|
||
This is a collection of fonts that can be used by PyMuPDF applications for writing text to PDFs. | ||
|
||
The fonts are provided encoded in compressed base64 format, wrapped as Python variables. | ||
|
||
The primary motivation for this approach is two-fold: (1) keep the PyMuPDF binary module size within reasonable limits and (2) enable inclusion of fonts not supported by the MuPDF library. We may extend this repository with Google's NOTO fonts. | ||
|
||
To use a certain font, its corresponding Python value is imported, which automatically decompresses and decodes the font's binary image into a ``bytes`` object. This value can then be used as a fontbuffer by any PyMuPDF method which needs a font. | ||
|
||
Currently the following fonts made by Mozilla are provided: | ||
* **FiraGO** font family, sans serif **proportional** fonts with support for 68 languages and the following scripts: Latin, Cyrillic, Greek, Arabic, Hebrew, Thai, Georgian and Devanagari. Support for the variants Regular, Bold, Ialic and Bold-Italic. Use this font as a viable "universal" alternative to the "Droid Sans Fallback Regular" font, which is included in the PyMuPDF package (embedded in the binary extension module). | ||
* **FiraMono** font family, sans serif **mono-spaced** fonts with support for dozens of languages and the scripts Latin, Cyrillic, Greek. Supports the weights Regular and Bold (no Italic). Can be used instead of Courier for a nicer look. | ||
* **Space Mono** (new in version 1.0.1) a nice and small-sized mono-spaced font family. Space Mono is an original fixed-width type family designed by Colophon Foundry for Google Design. It supports a Latin Extended glyph set, enabling typesetting for English and other Western European languages. Part of Google Fonts and also licensed by the `Open Font License <https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL>`. Supports Regular, Bold, Italic and Bild-Italic. | ||
|
||
Installation | ||
============ | ||
|
||
pymupdf_fonts is a pure Python package provided as a wheel. As such it is Python version independent. The fonts provided here are lzma-compressed. This is a standard module in Python 3. | ||
|
||
Usage and Documentation | ||
======================== | ||
Using the fonts is documented in PyMuPDF. | ||
|
||
Using the fonts is documented in PyMuPDF. | ||
|
||
|
||
Classifier: Development Status :: 5 - Production/Stable | ||
Classifier: Environment :: Console | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,12 +14,13 @@ | |
|
||
setuptools.setup( | ||
name="pymupdf_fonts", | ||
version="1.0.1", | ||
version="1.0.3", | ||
author="Jorj McKie", | ||
author_email="[email protected]", | ||
description="Collection of font binaries for use in PyMuPDF", | ||
packages=setuptools.find_packages(), | ||
long_description=long_desc, | ||
url="https://github.com/pymupdf/pymupdf_fonts", | ||
classifiers=classifier, | ||
license="SIL OFL V1.1", | ||
) |