Skip to content

Commit

Permalink
Update default fonts to Computer Modern family (#1)
Browse files Browse the repository at this point in the history
* Update default fonts to Computer Modern family

* Add requirements and installation instructions

* Add link to CMU font
  • Loading branch information
tomakado authored Oct 23, 2022
1 parent 9d1f87d commit dff6ba4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
```

4 changes: 2 additions & 2 deletions cmd/article_generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ 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 {
return nil, err
}

monoFontInput := textinput.New("What monospace font should be used?")
monoFontInput.InitialValue = "Fira Code"
monoFontInput.InitialValue = "CMUTypewriter-Regular"

monoFont, err := monoFontInput.RunPrompt()
if err != nil {
Expand Down

0 comments on commit dff6ba4

Please sign in to comment.