tinyimg 1.0.0
Lightweight image manipulation library for Cloudflare Workers
Loading...
Searching...
No Matches
TinyTextMetrics Struct Reference

What a run of text occupies. More...

#include <text.h>

Public Attributes

float width
float height
float ascent
float descent
float line_height
uint32_t lines
uint32_t glyphs
uint32_t missing

Detailed Description

What a run of text occupies.

Member Data Documentation

◆ ascent

float TinyTextMetrics::ascent

Baseline of the first line, measured down from the top of the run.

◆ descent

float TinyTextMetrics::descent

Below that baseline, positive.

◆ glyphs

uint32_t TinyTextMetrics::glyphs

Codepoints the run holds, which is not its byte length.

◆ height

float TinyTextMetrics::height

Height of the whole run: one line box per line.

◆ line_height

float TinyTextMetrics::line_height

Baseline to baseline.

◆ lines

uint32_t TinyTextMetrics::lines

How many lines the run occupies.

◆ missing

uint32_t TinyTextMetrics::missing

Codepoints the face had no glyph for.

◆ width

float TinyTextMetrics::width

Advance width of the widest line, in pixels.


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