Skip to content

Commit 337765e

Browse files
committed
Add an Unicode font
1 parent d413e2b commit 337765e

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

profiler/CMakeLists.txt

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ option(NO_ISA_EXTENSIONS "Disable ISA extensions (don't pass -march=native or -m
77
option(NO_STATISTICS "Disable calculation of statistics" OFF)
88
option(SELF_PROFILE "Enable self-profiling" OFF)
99
option(SANITIZE "Sanitizer parameters" OFF)
10+
option(USE_UNICODE_FONT "Use Unicode font" OFF)
1011

1112
include(${CMAKE_CURRENT_LIST_DIR}/../cmake/version.cmake)
1213

@@ -145,13 +146,21 @@ set(PROFILER_FILES
145146

146147
Embed(PROFILER_FILES SystemPrompt src/llm/system.prompt.md)
147148
Embed(PROFILER_FILES SystemReminder src/llm/system.reminder.md)
148-
Embed(PROFILER_FILES FontFixed src/font/FiraCode-Retina.ttf)
149-
Embed(PROFILER_FILES FontIcons src/font/Font\ Awesome\ 6\ Free-Solid-900.otf)
150-
Embed(PROFILER_FILES FontNormal src/font/Roboto-Regular.ttf)
151-
Embed(PROFILER_FILES FontBold src/font/Roboto-Bold.ttf)
152-
Embed(PROFILER_FILES FontItalic src/font/Roboto-Italic.ttf)
153-
Embed(PROFILER_FILES FontBoldItalic src/font/Roboto-BoldItalic.ttf)
154149
Embed(PROFILER_FILES Manual ../manual/tracy.md)
150+
Embed(PROFILER_FILES FontIcons src/font/Font\ Awesome\ 6\ Free-Solid-900.otf)
151+
if (USE_UNICODE_FONT)
152+
Embed(PROFILER_FILES FontNormal src/font/unifont.otf)
153+
Embed(PROFILER_FILES FontBold src/font/unifont.otf)
154+
Embed(PROFILER_FILES FontItalic src/font/unifont.otf)
155+
Embed(PROFILER_FILES FontBoldItalic src/font/unifont.otf)
156+
Embed(PROFILER_FILES FontFixed src/font/unifont.otf)
157+
else()
158+
Embed(PROFILER_FILES FontNormal src/font/Roboto-Regular.ttf)
159+
Embed(PROFILER_FILES FontBold src/font/Roboto-Bold.ttf)
160+
Embed(PROFILER_FILES FontItalic src/font/Roboto-Italic.ttf)
161+
Embed(PROFILER_FILES FontBoldItalic src/font/Roboto-BoldItalic.ttf)
162+
Embed(PROFILER_FILES FontFixed src/font/FiraCode-Retina.ttf)
163+
endif()
155164

156165
set(INCLUDES "${CMAKE_CURRENT_BINARY_DIR}")
157166
set(LIBS "")

profiler/src/font/unifont.otf

5.07 MB
Binary file not shown.

0 commit comments

Comments
 (0)