Files
OpenVulkano/openVulkanoCpp/Host/SystemFontResolver.hpp
2025-11-21 20:26:11 +01:00

28 lines
670 B
C++

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <filesystem>
#include <map>
#include <string>
namespace OpenVulkano
{
/**
* This class is only to look up installed system fonts.
* For a more extended font lookup, please use the FontResolver.hpp
*/
class SystemFontResolver
{
public:
[[nodiscard]] static const std::filesystem::path& GetSystemFontPath(const std::string& fontName);
private:
static std::map<std::string, std::filesystem::path> ReadSystemFonts();
};
}