Antkeeper  0.0.1
Public Attributes | List of all members
type::bitmap_glyph Struct Reference

Single glyph in a bitmap font. More...

#include <bitmap-glyph.hpp>

Public Attributes

glyph_metrics metrics
 Metrics describing the glyph. More...
 
std::vector< std::byte > bitmap
 Bitmap representing the glyph. More...
 
std::uint32_t bitmap_width {}
 Width of the glyph bitmap, in pixels. More...
 
std::uint32_t bitmap_height {}
 Height of the glyph bitmap, in pixels. More...
 
math::uvec2 position
 Position of the packed glyph bitmap within the font bitmap. More...
 

Detailed Description

Single glyph in a bitmap font.

See also
type::bitmap_font

Definition at line 35 of file bitmap-glyph.hpp.

Member Data Documentation

◆ bitmap

std::vector<std::byte> type::bitmap_glyph::bitmap

Bitmap representing the glyph.

Definition at line 41 of file bitmap-glyph.hpp.

◆ bitmap_height

std::uint32_t type::bitmap_glyph::bitmap_height {}

Height of the glyph bitmap, in pixels.

Definition at line 47 of file bitmap-glyph.hpp.

◆ bitmap_width

std::uint32_t type::bitmap_glyph::bitmap_width {}

Width of the glyph bitmap, in pixels.

Definition at line 44 of file bitmap-glyph.hpp.

◆ metrics

glyph_metrics type::bitmap_glyph::metrics

Metrics describing the glyph.

Definition at line 38 of file bitmap-glyph.hpp.

◆ position

math::uvec2 type::bitmap_glyph::position

Position of the packed glyph bitmap within the font bitmap.

Definition at line 50 of file bitmap-glyph.hpp.


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