From dff6ba4df0810b0113618363c6394cae47f578d2 Mon Sep 17 00:00:00 2001 From: Ildar Karymov Date: Sun, 23 Oct 2022 09:40:14 +0300 Subject: [PATCH] Update default fonts to Computer Modern family (#1) * Update default fonts to Computer Modern family * Add requirements and installation instructions * Add link to CMU font --- README.md | 17 +++++++++++++++++ cmd/article_generate.go | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 01b37e9..1ead4e5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,20 @@ # Defer Panic CLI Toolkit for managing Defer Panic articles and other stuff. + +## Requirements + +* [pandoc](https://pandoc.org) +* xelatex (for exporting to PDF) +* [Computer Modern Unicode fonts](https://cm-unicode.sourceforge.io/index.html) (if you want to use them for exporting to PDF) + +## Install + +Go to Releases page and download archive with latest version for your platform. + +If you want to build Defer Panic CLI manually, make sure you have Go 1.19+ on your machine, then run: + +```shell +go install github.com/defer-panic/dp-cli@latest +``` + diff --git a/cmd/article_generate.go b/cmd/article_generate.go index c009f67..bb3c162 100644 --- a/cmd/article_generate.go +++ b/cmd/article_generate.go @@ -114,7 +114,7 @@ func readDataFromInput() (*Data, error) { } mainFontInput := textinput.New("What main font should be used?") - mainFontInput.InitialValue = "Times New Roman" + mainFontInput.InitialValue = "CMUSerif-Roman" mainFont, err := mainFontInput.RunPrompt() if err != nil { @@ -122,7 +122,7 @@ func readDataFromInput() (*Data, error) { } monoFontInput := textinput.New("What monospace font should be used?") - monoFontInput.InitialValue = "Fira Code" + monoFontInput.InitialValue = "CMUTypewriter-Regular" monoFont, err := monoFontInput.RunPrompt() if err != nil {