Skip to content

Commit

Permalink
docs: Update documentation to use xml2rfc-fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Jun 25, 2024
1 parent 811d03d commit d09d41e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 26 deletions.
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,10 @@ In order to generate PDFs, **xml2rfc** uses the [WeasyPrint] module, which depen
```sh
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
* 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.
3. Finally, install the required fonts:
* Download [xml2rfc-fonts v3.22.0](https://github.com/ietf-tools/xml2rfc-fonts/releases/tag/3.22.0) [tar.gz](https://github.com/ietf-tools/xml2rfc-fonts/archive/refs/tags/3.22.0.tar.gz) [zip](https://github.com/ietf-tools/xml2rfc-fonts/archive/refs/tags/3.22.0.zip)
* Extract the contents of the downloaded xml2rfc-fonts archive.
* Install the fonts found in the `noto` and `roboto_mono` directories to your operating system.

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

Expand Down
22 changes: 6 additions & 16 deletions xml2rfc/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,15 @@ def get_pdf_help(missing_libs=""):
pip install 'weasyprint>=53.0,!=57.0,!=60.0'
3. Finally, install the required fonts:
* Download xml2rfc-fonts v3.22.0.
https://github.com/ietf-tools/xml2rfc-fonts/releases/tag/3.22.0
3. Finally, install the full Noto Font and Roboto Mono packages:
* Extract the contents of the downloaded xml2rfc-fonts archive.
* 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/
* Install the fonts found in the `noto` and `roboto_mono` directories
to your operating system.
* 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.
With these libraries, modules, and fonts installed and available to
xml2rfc, the --pdf switch will be enabled.
"""
Expand Down

0 comments on commit d09d41e

Please sign in to comment.