Skip to content

Commit

Permalink
file file
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Jul 3, 2024
1 parent 0815cb5 commit 633e3c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ COPY --link --from=build-dev /go/src/app/Koruri-Regular.ttf /go/bin/Koruri-Regul
COPY --from=build-dev /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENV USERDIC=/go/bin/userdic.txt
ENV IGNORES=/go/bin/ignores.txt
ENV FONTFILE=/go/bin/Koruri-Regular.ttf
CMD ["/go/bin/nostr-buzzword"]
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func makeWordCloud(items []*HotItem, sign func(*nostr.Event) error) (string, err
inputWords[item.Word] = item.Count
}
img := wordclouds.NewWordcloud(inputWords,
wordclouds.FontFile("Koruri-Regular.ttf"),
wordclouds.FontFile(env("FONTFILE", "Koruri-Regular.ttf")),
wordclouds.FontMaxSize(100),
wordclouds.FontMinSize(10),
wordclouds.Colors(colors),
Expand Down

0 comments on commit 633e3c8

Please sign in to comment.