Skip to content

Commit

Permalink
Remove option to change boring font
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanSchroeder committed May 28, 2023
1 parent 3e3eb2b commit 6258eec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ When run with the font Arial Narrow, the result will look like this:
![Sample](https://raw.githubusercontent.com/StefanSchroeder/ttfsample/master/sample/sample.png)

The name of the font will always be included, printed with a
boring font, by default GNU FreeSansBold, that is always
boring font, GNU FreeSansBold, that is always
readable even if the font has only symbols.

Author: Stefan Schröder, 2019, 2023
Expand Down Expand Up @@ -67,11 +67,6 @@ The output directory where the image will be stored.

Font size in points. Default is 100. Use responsibly.

-boringfont path/to/font

The font that is used to print the title of the font. This
must be a TTF font.

-spacing FLOAT

Defaults to 1.5. Distance between two lines.
Expand Down
15 changes: 7 additions & 8 deletions ttfsample.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,13 @@ var defaultJabberText = []string{
var freesansbold []byte

var (
boringfont = flag.String("boringfont", "FreeSansBold.ttf", "The path to the boring font")
dpi = flag.Float64("dpi", 72, "screen resolution in Dots Per Inch")
fontfile = flag.String("fontfile", "", "filename of the ttf/otf font")
hinting = flag.String("hinting", "none", "none | full")
outdir = flag.String("outdir", "png", "Output directory")
size = flag.Float64("size", 100, "font size in points")
spacing = flag.Float64("spacing", 1.5, "line spacing (e.g. 2 means double spaced)")
walk = flag.String("walk", "", "recursively look for fonts.")
dpi = flag.Float64("dpi", 72, "screen resolution in Dots Per Inch")
fontfile = flag.String("fontfile", "", "filename of the ttf/otf font")
hinting = flag.String("hinting", "none", "none | full")
outdir = flag.String("outdir", "png", "Output directory")
size = flag.Float64("size", 100, "font size in points")
spacing = flag.Float64("spacing", 1.5, "line spacing (e.g. 2 means double spaced)")
walk = flag.String("walk", "", "recursively look for fonts.")
)

func walkDirectories(s string, sampleText []string) {
Expand Down

0 comments on commit 6258eec

Please sign in to comment.