From a62627fed94ad49c2ca8d01c30bafd810eb67468 Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Wed, 26 Jun 2024 08:52:35 +1200 Subject: [PATCH] docs: Update font install instructions --- README.md | 5 +++-- xml2rfc/run.py | 9 ++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5afc412e..a9f1540f 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/xml2rfc/run.py b/xml2rfc/run.py index 984f8f3b..576ef520 100755 --- a/xml2rfc/run.py +++ b/xml2rfc/run.py @@ -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