tinyimg 1.1.1
Lightweight image manipulation library for WebAssembly
Loading...
Searching...
No Matches
TinyTextRun Struct Reference

One styled span of a rich run. More...

#include <text.h>

Public Attributes

const TinyFont * font
const char * text
const TinyTextStyle * style
const uint8_t * color

Detailed Description

One styled span of a rich run.

The unit a caller builds a mixed-style line out of: a bold word inside a sentence, a colored number after a label, a second face for a script the first one has no glyphs for.

Member Data Documentation

◆ color

const uint8_t* TinyTextRun::color

The fill color, or NULL for the one the draw was given.

◆ font

const TinyFont* TinyTextRun::font

The face this span is set in.

◆ style

const TinyTextStyle* TinyTextRun::style

How to set it, or NULL for the defaults at the face's own size.

◆ text

const char* TinyTextRun::text

UTF-8, NUL terminated.


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