cli: use NotoMono-Regular.ttf font in Linux

This commit is contained in:
Dmitry Atamanov 2025-12-27 20:02:13 +05:00
parent 6114e69213
commit 3e84291cd3
1 changed files with 4 additions and 0 deletions

View File

@ -82,7 +82,11 @@ struct whisper_params {
std::string language = "en";
std::string prompt;
#ifdef __linux__
std::string font_path = "/usr/share/fonts/truetype/noto/NotoMono-Regular.ttf";
#else
std::string font_path = "/System/Library/Fonts/Supplemental/Courier New Bold.ttf";
#endif
std::string model = "models/ggml-base.en.bin";
std::string grammar;
std::string grammar_rule;