Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Vindicus999
2025-09-24 21:25:03 -04:00
88 changed files with 6692 additions and 3956 deletions
+15 -15
View File
@@ -490,22 +490,22 @@ static std::vector<std::string> find_font(std::u16string sample_text, const std:
void imgui_context::initialize_fonts()
{
std::u16string sample_text = u"Hello world";
const auto & locale = application::get_messages_info();
auto it = glyph_set_per_language.find(locale.language + "_" + locale.country);
if (it == glyph_set_per_language.end())
it = glyph_set_per_language.find(locale.language);
if (it != glyph_set_per_language.end())
for (char16_t c: it->second)
sample_text += c;
// Load Fonts
auto fonts = find_font(sample_text, application::get_messages_info().language);
for (auto & i: fonts)
std::vector<std::string> fonts;
for (auto & [code, glyphs]: glyph_set_per_language)
{
spdlog::info("Font {}", i);
std::u16string sample_text = u"Hello world";
for (char16_t c: glyphs)
sample_text += c;
auto language = code.substr(0, code.find("_"));
// Load Fonts
for (auto && i: find_font(sample_text, language))
{
spdlog::info("Font for {} {}", code, i);
if (not std::ranges::contains(fonts, i))
fonts.push_back(std::move(i));
}
}
asset font_awesome_regular("Font Awesome 6 Free-Regular-400.otf");
-3
View File
@@ -34,7 +34,6 @@
#include <glm/gtc/matrix_access.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/quaternion.hpp>
#include <map>
#include <memory>
#include <ranges>
#include <spdlog/spdlog.h>
@@ -42,8 +41,6 @@
#include <vulkan/vulkan_enums.hpp>
#include <vulkan/vulkan_structs.hpp>
extern const std::map<std::string, std::vector<uint32_t>> shaders;
// TODO move in lobby?
vk::Format scene_renderer::find_usable_image_format(
vk::raii::PhysicalDevice physical_device,