From bb5e2b9f88272a0074f65f84c991455e8958e962 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Fri, 20 Dec 2024 08:28:54 +0800 Subject: [PATCH] allow font names with commas [#38] (#39) --- CONTRIBUTING.md | 6 ++++++ main.cpp | 3 +++ 2 files changed, 9 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7533574..7012583 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -23,4 +23,10 @@ Use `./build_wasm.sh PATH_TO_INCLUDE_DIR` to build the WASM output, where `PATH_ ``` cmake . make +``` + +# Running command line + +``` +./font-maker --name "Noto Sans" output File1.ttf File2.ttf ``` \ No newline at end of file diff --git a/main.cpp b/main.cpp index 5f28ee2..43cce79 100644 --- a/main.cpp +++ b/main.cpp @@ -7,6 +7,9 @@ #ifndef EMSCRIPTEN #include "ghc/filesystem.hpp" + +// allow font filenames with commas +#define CXXOPTS_VECTOR_DELIMITER '\0' #include "cxxopts.hpp" #endif #include