Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::fonts Namespace Reference

Classes

struct  ClipRect
 
struct  Error
 
struct  Metrics
 
class  Runtime
 
struct  Settings
 

Enumerations

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

Functions

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

Enumeration Type Documentation

◆ ErrorCode

Enumerator
TtfInitFailed 
FontNotFound 
FontOpenFailed 
InvalidSize 
InvalidSlot 
MeasureFailed 
RenderFailed 
SurfaceConversionFailed 
InvalidTextEncoding 

Definition at line 21 of file FontRuntime.hpp.

Function Documentation

◆ resolveRetailArial()

std::expected< std::filesystem::path, Error > monopoly::fonts::resolveRetailArial ( std::span< const std::filesystem::path >  roots)

Definition at line 707 of file FontRuntime.cpp.

◆ transcodeUtf8() [1/2]

std::expected< std::string, Error > monopoly::fonts::transcodeUtf8 ( std::u16string_view  text)

Definition at line 131 of file FontRuntime.cpp.

◆ transcodeUtf8() [2/2]

std::expected< std::string, Error > monopoly::fonts::transcodeUtf8 ( std::wstring_view  text)

Definition at line 136 of file FontRuntime.cpp.