Unravel Engine C++ Reference
Loading...
Searching...
No Matches
font_manager.cpp File Reference
#include <bx/bx.h>
#include "../common.h"
#include <bgfx/bgfx.h>
#include <stb/stb_truetype.h>
#include "sdf.h"
#include <wchar.h>
#include <tinystl/allocator.h>
#include <tinystl/unordered_map.h>
#include <tinystl/vector.h>
#include "../cube_atlas.h"
#include "font_manager.h"
#include "utf8.h"

Go to the source code of this file.

Classes

struct  gfx::font_profile_scope
 
class  gfx::true_type_font
 
struct  gfx::font_manager::cached_font
 

Namespaces

namespace  gfx
 

Macros

#define STB_TRUETYPE_IMPLEMENTATION
 
#define SDF_IMPLEMENTATION
 
#define MAX_FONT_BUFFER_SIZE   (512 * 4 * 512 * 4 * 4)
 

Typedefs

using gfx::glyph_lut_t = stl::unordered_map<code_point, glyph_info>
 

Functions

 BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC (4244) namespace stl
 
auto gfx::add_white_glyph (Atlas *atlas, uint32_t size) -> glyph_info
 

Macro Definition Documentation

◆ MAX_FONT_BUFFER_SIZE

#define MAX_FONT_BUFFER_SIZE   (512 * 4 * 512 * 4 * 4)

Definition at line 34 of file font_manager.cpp.

◆ SDF_IMPLEMENTATION

#define SDF_IMPLEMENTATION

◆ STB_TRUETYPE_IMPLEMENTATION

#define STB_TRUETYPE_IMPLEMENTATION

Definition at line 7 of file font_manager.cpp.

Function Documentation

◆ BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC()

BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC ( 4244 )