Skip to content

Commit

Permalink
docs: Update font install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Jun 25, 2024
1 parent d09d41e commit a62627f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ In order to generate PDFs, **xml2rfc** uses the [WeasyPrint] module, which depen
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) [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.
* Download latest fonts from [xml2rfc-fonts](https://github.com/ietf-tools/xml2rfc-fonts/releases/latest).
* In the **Assets** section, download either the `tar.gz` or the `zip` archive.
* 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
9 changes: 6 additions & 3 deletions xml2rfc/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,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
* Download latest fonts from xml2rfc-fonts.
https://github.com/ietf-tools/xml2rfc-fonts/releases/latest
* In the "Assets" section, download either the tar.gz or
the zip archive.
* Extract the contents of the downloaded xml2rfc-fonts archive.
* Install the fonts found in the `noto` and `roboto_mono` directories
* Install the fonts found in the noto and roboto_mono directories
to your operating system.
With these libraries, modules, and fonts installed and available to
Expand Down

0 comments on commit a62627f

Please sign in to comment.