mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
* ‘term’ struct contains an array of 160 fcft glyph pointers * the glyph pointers are lazily allocated when we need to draw a box drawings character * Filtering out box drawings characters is easy - they are (except unicode 13, which isn’t handled yet )all in a single range.
9 lines
198 B
C
9 lines
198 B
C
#pragma once
|
|
|
|
#include <pixman.h>
|
|
|
|
static inline int
|
|
stride_for_format_and_width(pixman_format_code_t format, int width)
|
|
{
|
|
return (((PIXMAN_FORMAT_BPP(format) * width + 7) / 8 + 4 - 1) & -4);
|
|
}
|