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

Metrics describing properties of a glyph. More...

#include <glyph-metrics.hpp>

Public Attributes

float width
 Horizontal extent of the glyph. More...
 
float height
 Vertical extent of the glyph. More...
 
math::fvec2 horizontal_bearing
 Offset from the pen position to the glyph's top-left edge, in horizontal layouts. More...
 
math::fvec2 vertical_bearing
 Offset from the pen position to the glph's top-left edge, in vertical layouts. More...
 
float horizontal_advance
 Distance to move the pen position after the glyph has been rendered, in horizontal layouts. More...
 
float vertical_advance
 Distance to move the pen position after the glyph has been rendered, in vertical layouts. More...
 

Detailed Description

Metrics describing properties of a glyph.

Definition at line 30 of file glyph-metrics.hpp.

Member Data Documentation

◆ height

float type::glyph_metrics::height

Vertical extent of the glyph.

Definition at line 36 of file glyph-metrics.hpp.

◆ horizontal_advance

float type::glyph_metrics::horizontal_advance

Distance to move the pen position after the glyph has been rendered, in horizontal layouts.

Definition at line 45 of file glyph-metrics.hpp.

◆ horizontal_bearing

math::fvec2 type::glyph_metrics::horizontal_bearing

Offset from the pen position to the glyph's top-left edge, in horizontal layouts.

Definition at line 39 of file glyph-metrics.hpp.

◆ vertical_advance

float type::glyph_metrics::vertical_advance

Distance to move the pen position after the glyph has been rendered, in vertical layouts.

Definition at line 48 of file glyph-metrics.hpp.

◆ vertical_bearing

math::fvec2 type::glyph_metrics::vertical_bearing

Offset from the pen position to the glph's top-left edge, in vertical layouts.

Definition at line 42 of file glyph-metrics.hpp.

◆ width

float type::glyph_metrics::width

Horizontal extent of the glyph.

Definition at line 33 of file glyph-metrics.hpp.


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