diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-17 15:04:35 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-17 15:04:35 +0100 |
| commit | 95e06b2f6d87b597a52029dbfa9896f4bd8ca74b (patch) | |
| tree | 250078f1044844a8cfe64592a9181fa0587317ae /src/fonts.cpp | |
| parent | 7105b39ca10394723e888161d586461e9e2b1984 (diff) | |
logging
Diffstat (limited to 'src/fonts.cpp')
| -rw-r--r-- | src/fonts.cpp | 6 |
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 |
