Skip to content

Commit

Permalink
docs: Update font installation instructions
Browse files Browse the repository at this point in the history
Update font installation instructions to use xml2rfc-fonts repository.

Fixes #1030
  • Loading branch information
kesara committed Oct 2, 2023
1 parent ff2ceff commit b0a0d35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 24 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,9 @@ In order to generate PDFs, **xml2rfc** uses the [WeasyPrint] module, which depen
pip install 'weasyprint==55.0'
```
3. Finally, install the full **Noto Font** and **Roboto Mono** packages:
* Download the full font file from:
https://noto-website-2.storage.googleapis.com/pkgs/Noto-unhinted.zip
* Follow the installation instructions at
https://www.google.com/get/noto/help/install/
* Go to https://fonts.google.com/specimen/Roboto+Mono, and download the
font. Follow the installation instructions above, as applied to this download.
* Go to https://fonts.google.com/noto/specimen/Noto+Sans+Math, and
download the font. Follow the installation instructions above, as
applied to this download.
* Download the latest xml2rfc-fonts release from:
https://github.com/ietf-tools/xml2rfc-fonts/releases
* Follow the fonts installation instructions for your operating system.

With these installed and available to **xml2rfc**, the `--pdf` switch will be enabled.

Expand Down
18 changes: 3 additions & 15 deletions xml2rfc/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,13 @@ def get_pdf_help(missing_libs=""):
pip install 'weasyprint>=53.0,!=57.0,!=60.0'
3. Finally, install the full Noto Font and Roboto Mono packages:
* Download the full font file from:
https://noto-website-2.storage.googleapis.com/pkgs/Noto-unhinted.zip
or follow the 'DOWNLOAD ALL FONTS' link on this page:
https://www.google.com/get/noto/
* Follow the installation instructions at
https://www.google.com/get/noto/help/install/
* Download the latest xml2rfc-fonts release from:
https://github.com/ietf-tools/xml2rfc-fonts/releases
* Go to https://fonts.google.com/specimen/Roboto+Mono, and download the
font. Follow the installation instructions above, as applied to this
download.
* Follow the fonts installation instructions for your operating system.
* Go to https://fonts.google.com/noto/specimen/Noto+Sans+Math, and
download the font. Follow the installation instructions above, as
applied to this download.
With these libraries, modules, and fonts installed and available to
xml2rfc, the --pdf switch will be enabled.
"""
Expand Down

0 comments on commit b0a0d35

Please sign in to comment.