Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
FontRuntime.hpp File Reference
#include "LegacyBitmap.hpp"
#include <SDL3_ttf/SDL_ttf.h>
#include <array>
#include <cstddef>
#include <cstdint>
#include <expected>
#include <filesystem>
#include <optional>
#include <memory>
#include <span>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for FontRuntime.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  monopoly::fonts::Error
 
struct  monopoly::fonts::Settings
 
struct  monopoly::fonts::Metrics
 
struct  monopoly::fonts::ClipRect
 
class  monopoly::fonts::Runtime
 

Namespaces

namespace  monopoly
 
namespace  monopoly::fonts
 

Enumerations

enum class  monopoly::fonts::ErrorCode {
  monopoly::fonts::TtfInitFailed , monopoly::fonts::FontNotFound , monopoly::fonts::FontOpenFailed , monopoly::fonts::InvalidSize ,
  monopoly::fonts::InvalidSlot , monopoly::fonts::MeasureFailed , monopoly::fonts::RenderFailed , monopoly::fonts::SurfaceConversionFailed ,
  monopoly::fonts::InvalidTextEncoding
}
 

Functions

std::expected< std::string, Error > monopoly::fonts::transcodeUtf8 (std::u16string_view text)
 
std::expected< std::string, Error > monopoly::fonts::transcodeUtf8 (std::wstring_view text)
 
std::expected< std::filesystem::path, Error > monopoly::fonts::resolveRetailArial (std::span< const std::filesystem::path > roots)