libepaper 2.0.0
A C++23 library for controlling Waveshare e-paper displays on Raspberry Pi, featuring transparent sleep/wake management and a fluent builder API.
Loading...
Searching...
No Matches
Public Attributes | List of all members
epaper::FontMetrics Struct Reference

Font dimension metrics. More...

#include <font.hpp>

Public Attributes

std::uint16_t width
 
std::uint16_t height
 

Detailed Description

Font dimension metrics.

Describes the bounding box dimensions for all characters in a font. Since fonts are fixed-width, all characters share these dimensions.

Member Semantics:

Usage:

const Font& font = Font::font16();
auto metrics = font.metrics();
std::size_t text_width = metrics.width * text.length();
std::size_t text_height = metrics.height;
Definition font.hpp:142
static auto font16() -> const Font &
Get 16-pixel font.
Definition font.cpp:52
constexpr auto metrics() const noexcept -> FontMetrics
Get font dimensions.
Definition font.hpp:182

Member Data Documentation

◆ height

std::uint16_t epaper::FontMetrics::height

◆ width

std::uint16_t epaper::FontMetrics::width

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