VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
visutwin::canvas::FontResource Struct Reference

#include <framework/handlers/fontResource.h>

Public Member Functions

float kerningValue (const int left, const int right) const

Public Attributes

int atlasHeight = 0
int atlasWidth = 0
std::unordered_map< int, FontGlyphglyphs
std::unordered_map< uint64_t, float > kerning
float lineHeight = 64.0f
Texturetexture = nullptr

Detailed Description

Definition at line 28 of file fontResource.h.

Member Function Documentation

◆ kerningValue()

float visutwin::canvas::FontResource::kerningValue ( const int left,
const int right ) const
inline

Definition at line 37 of file fontResource.h.

References kerning.

Member Data Documentation

◆ atlasHeight

int visutwin::canvas::FontResource::atlasHeight = 0

Definition at line 32 of file fontResource.h.

◆ atlasWidth

int visutwin::canvas::FontResource::atlasWidth = 0

Definition at line 31 of file fontResource.h.

◆ glyphs

std::unordered_map<int, FontGlyph> visutwin::canvas::FontResource::glyphs

Definition at line 34 of file fontResource.h.

Referenced by visutwin::canvas::ElementInput::syncTextElements().

◆ kerning

std::unordered_map<uint64_t, float> visutwin::canvas::FontResource::kerning

Definition at line 35 of file fontResource.h.

Referenced by kerningValue().

◆ lineHeight

float visutwin::canvas::FontResource::lineHeight = 64.0f

Definition at line 33 of file fontResource.h.

◆ texture

Texture* visutwin::canvas::FontResource::texture = nullptr

Definition at line 30 of file fontResource.h.

Referenced by visutwin::canvas::ElementInput::syncTextElements().


The documentation for this struct was generated from the following file: