Skip to content

Commit dff6ba4

Browse files
authored
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
1 parent 9d1f87d commit dff6ba4

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
# Defer Panic CLI
22

33
Toolkit for managing Defer Panic articles and other stuff.
4+
5+
## Requirements
6+
7+
* [pandoc](https://pandoc.org)
8+
* xelatex (for exporting to PDF)
9+
* [Computer Modern Unicode fonts](https://cm-unicode.sourceforge.io/index.html) (if you want to use them for exporting to PDF)
10+
11+
## Install
12+
13+
Go to Releases page and download archive with latest version for your platform.
14+
15+
If you want to build Defer Panic CLI manually, make sure you have Go 1.19+ on your machine, then run:
16+
17+
```shell
18+
go install github.com/defer-panic/dp-cli@latest
19+
```
20+

cmd/article_generate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ func readDataFromInput() (*Data, error) {
114114
}
115115

116116
mainFontInput := textinput.New("What main font should be used?")
117-
mainFontInput.InitialValue = "Times New Roman"
117+
mainFontInput.InitialValue = "CMUSerif-Roman"
118118

119119
mainFont, err := mainFontInput.RunPrompt()
120120
if err != nil {
121121
return nil, err
122122
}
123123

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

127127
monoFont, err := monoFontInput.RunPrompt()
128128
if err != nil {

0 commit comments

Comments
 (0)