summaryrefslogtreecommitdiff
path: root/src/fonts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fonts.cpp')
-rw-r--r--src/fonts.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fonts.cpp b/src/fonts.cpp
index 34df8f4..2fff05f 100644
--- a/src/fonts.cpp
+++ b/src/fonts.cpp
@@ -5,6 +5,7 @@
#include "../fonts/NotoSerifTC.h"
#include "../fonts/NotoSansSC.h"
#include "../fonts/NotoSansThai.h"
+#include "logging.h"
#include "imgui.h"
#include <stdio.h>
@@ -42,6 +43,8 @@ ts_font_range ts_locale_to_range(wchar_t* buffer) {
if (wcscmp(buffer, L"th-TH") == 0) result = FONT_RANGE_THAI;
if (wcscmp(buffer, L"vi-VN") == 0) result = FONT_RANGE_VIETNAMESE;
+
+ TS_LOG_TRACE("Loaded locale: %ls, alphabet: %s", buffer, FONT_RANGE_STRING[result]);
return result;
}
@@ -126,5 +129,6 @@ void ts_load_fonts(float size, ts_font_range locale) {
size, &config, io.Fonts->GetGlyphRangesVietnamese());
}
- io.Fonts->Build();
+ io.Fonts->Build();
+ TS_LOG_TRACE("Loaded fonts");
} \ No newline at end of file