resonance 1.0.1
Loading...
Searching...
No Matches
font.h File Reference
#include <cstddef>
#include <map>
#include "os/hxstr.h"
#include "rnd/object.h"
Include dependency graph for font.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Rnd::Font
 Glyph atlas, either a host font description or a grid of cells inside a material texture. More...
class  Rnd::Font::CharInfo
 Measured metrics of one glyph. More...

Namespaces

namespace  Rnd
 The rendering engine.

Enumerations

enum  Rnd::FontWeight { Rnd::kFontWeightThin = 0 , Rnd::kFontWeightNormal = 1 , Rnd::kFontWeightBold = 2 }
 Stroke weight of a Builtin font. More...
enum  Rnd::FontFamily { Rnd::kFontFamilyModern = 0 , Rnd::kFontFamilyRoman = 1 , Rnd::kFontFamilySwiss = 2 , Rnd::kFontFamilyScript = 3 }
 Typeface family of a Builtin font. More...

Functions

Font * Rnd::NewFont (const HxStr &name)
 Allocate and construct a font.
Font * Rnd::NewFontThroughHook (const HxStr &name)
 Build a font through g_pfnNewFont.
Object * Rnd::CreateRegisteredFont (const HxStr &name)
 Build a font for the registered "Font" class.
void Rnd::RegisterFontClass ()
 Point g_pfnNewFont at NewFont() and register the "Font" class with Rnd::Manager.

Variables

Font *(* Rnd::g_pfnNewFont )(const HxStr &name)
 Creator the registered "Font" class builds through.
HxStr Rnd::g_fontClassName
 Registered class name of Rnd::Font, the string "Font".