Project Alice
Loading...
Searching...
No Matches
fonts.hpp File Reference
#include "freetype/freetype.h"
#include "freetype/ftglyph.h"
#include "unordered_dense.h"
#include "hb.h"
#include "bmfont.hpp"
#include <span>
Include dependency graph for fonts.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  text::glyph_sub_offset
 
struct  text::surrogate_pair
 
struct  text::stored_glyph
 
struct  text::stored_glyphs
 
struct  text::stored_glyphs::no_bidi
 
class  text::font
 
class  text::font_manager
 

Namespaces

namespace  sys
 
namespace  text
 

Enumerations

enum class  text::font_selection { text::body_font , text::header_font , text::map_font }
 
enum class  text::font_feature { text::none , text::small_caps }
 

Functions

uint16_t text::name_into_font_id (sys::state &state, std::string_view txt)
 
int32_t text::size_from_font_id (uint16_t id)
 
bool text::is_black_from_font_id (uint16_t id)
 
font_selection text::font_index_from_font_id (sys::state &state, uint16_t id)
 
bool text::requires_surrogate_pair (uint32_t codepoint)
 
surrogate_pair text::make_surrogate_pair (uint32_t val) noexcept
 
std::string_view text::classic_unligate_utf8 (text::font &font, char32_t c)
 

Variables

constexpr uint32_t text::max_texture_layers = 256
 
constexpr int text::magnification_factor = 4
 
constexpr int text::dr_size = 64 * magnification_factor