diff --git a/profiler/CMakeLists.txt b/profiler/CMakeLists.txt index d01731d320..a6eabb1809 100644 --- a/profiler/CMakeLists.txt +++ b/profiler/CMakeLists.txt @@ -7,6 +7,7 @@ option(NO_ISA_EXTENSIONS "Disable ISA extensions (don't pass -march=native or -m option(NO_STATISTICS "Disable calculation of statistics" OFF) option(SELF_PROFILE "Enable self-profiling" OFF) option(SANITIZE "Sanitizer parameters" OFF) +option(USE_UNICODE_FONT "Use Unicode font" OFF) include(${CMAKE_CURRENT_LIST_DIR}/../cmake/version.cmake) @@ -145,13 +146,21 @@ set(PROFILER_FILES Embed(PROFILER_FILES SystemPrompt src/llm/system.prompt.md) Embed(PROFILER_FILES SystemReminder src/llm/system.reminder.md) -Embed(PROFILER_FILES FontFixed src/font/FiraCode-Retina.ttf) -Embed(PROFILER_FILES FontIcons src/font/Font\ Awesome\ 6\ Free-Solid-900.otf) -Embed(PROFILER_FILES FontNormal src/font/Roboto-Regular.ttf) -Embed(PROFILER_FILES FontBold src/font/Roboto-Bold.ttf) -Embed(PROFILER_FILES FontItalic src/font/Roboto-Italic.ttf) -Embed(PROFILER_FILES FontBoldItalic src/font/Roboto-BoldItalic.ttf) Embed(PROFILER_FILES Manual ../manual/tracy.md) +Embed(PROFILER_FILES FontIcons src/font/Font\ Awesome\ 6\ Free-Solid-900.otf) +if (USE_UNICODE_FONT) + Embed(PROFILER_FILES FontNormal src/font/unifont.otf) + Embed(PROFILER_FILES FontBold src/font/unifont.otf) + Embed(PROFILER_FILES FontItalic src/font/unifont.otf) + Embed(PROFILER_FILES FontBoldItalic src/font/unifont.otf) + Embed(PROFILER_FILES FontFixed src/font/unifont.otf) +else() + Embed(PROFILER_FILES FontNormal src/font/Roboto-Regular.ttf) + Embed(PROFILER_FILES FontBold src/font/Roboto-Bold.ttf) + Embed(PROFILER_FILES FontItalic src/font/Roboto-Italic.ttf) + Embed(PROFILER_FILES FontBoldItalic src/font/Roboto-BoldItalic.ttf) + Embed(PROFILER_FILES FontFixed src/font/FiraCode-Retina.ttf) +endif() set(INCLUDES "${CMAKE_CURRENT_BINARY_DIR}") set(LIBS "") diff --git a/profiler/src/font/unifont.otf b/profiler/src/font/unifont.otf new file mode 100644 index 0000000000..6f98904e82 Binary files /dev/null and b/profiler/src/font/unifont.otf differ