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

What a face says about itself, in pixels at a size. More...

#include <text.h>

Public Attributes

float ascent
float descent
float line_height
float size
uint32_t glyphs
uint8_t fixed_size

Detailed Description

What a face says about itself, in pixels at a size.

The numbers a caller needs to place a line of text without knowing anything about font units.

Member Data Documentation

◆ ascent

float TinyFontMetrics::ascent

Baseline to the top of the ascenders.

◆ descent

float TinyFontMetrics::descent

Baseline down to the bottom of the descenders, positive.

◆ fixed_size

uint8_t TinyFontMetrics::fixed_size

Non-zero when the size is fixed, which a bitmap face's is.

◆ glyphs

uint32_t TinyFontMetrics::glyphs

Glyphs the face holds.

◆ line_height

float TinyFontMetrics::line_height

Baseline to baseline.

◆ size

float TinyFontMetrics::size

Em size the numbers are for.


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