Skip to content

Commit 4b77efe

Browse files
docs: document -load flag for custom font loading
1 parent 0220ca1 commit 4b77efe

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ bit -font ithaca -color 31 "Red Text"
121121
# List all fonts
122122
bit -list
123123

124+
# Load custom font or directory of fonts (along with built-in fonts)
125+
bit -load ./myfont.bit
126+
bit -load ./fonts/
127+
124128
# Show help
125129
bit -help
126130
```

cmd/bit/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ func main() {
6767
fmt.Fprintf(os.Stderr, " bit -font ithaca -color \"#FF0000\" \"Red Hex\" # Hex color\n")
6868
fmt.Fprintf(os.Stderr, " bit -font dogica -color 31 -gradient 34 \"Gradient\" # Gradient\n")
6969
fmt.Fprintf(os.Stderr, " bit -font pressstart -color 32 -shadow \"Shadow\" # With shadow\n")
70-
fmt.Fprintf(os.Stderr, " bit -load ./myfont.bit \"Custom\" # Load custom font file\n")
71-
fmt.Fprintf(os.Stderr, " bit -load ./fonts/ -list # Load custom font directory\n")
70+
fmt.Fprintf(os.Stderr, " bit -load ./myfont.bit \"Custom\" # Load custom font file\n")
71+
fmt.Fprintf(os.Stderr, " bit -load ./fonts/ -list # Load custom font directory\n")
7272
}
7373

7474
flag.Parse()

0 commit comments

Comments
 (0)