Skip to content

Commit 4871b7c

Browse files
committed
Embed Unifont OTF for the default console font
Font from: https://unifoundry.com/pub/unifont/unifont-17.0.03/font-builds/unifont-17.0.03.otf The font is available under either of two licenses, "GNU GPLv2+ with GNU Font Embedding Exception" or "SIL Open Font License version 1.1". License from https://unifoundry.com/LICENSE.txt. Switch from TTF to OTF because: - OTF has a smaller file size - Unifont stopped releasing TTF The embedded font is used when cl_consoleFont is the empty string (the new default).
1 parent fae4b19 commit 4871b7c

File tree

5 files changed

+507
-29
lines changed

5 files changed

+507
-29
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,8 @@ if (BUILD_CLIENT)
929929

930930
# Generate GLSL include files.
931931
daemon_embed_files("EngineShaders" "${GLSL_EMBED_DIR}" "${GLSL_EMBED_LIST}" "TEXT" "client-objects")
932+
933+
daemon_embed_files(ConsoleFont "${CMAKE_CURRENT_SOURCE_DIR}/libs/unifont" unifont.otf BINARY client-objects)
932934
endif()
933935

934936
if (BUILD_SERVER)

0 commit comments

Comments
 (0)