mirror of
https://libwebsockets.org/repo/libwebsockets
synced 2024-11-21 16:47:52 +00:00
e3dca87f23
This adds optional display list support to lws_display, using DLOs (Display List Objects). DLOs for rectangle / rounded rectangle (with circle as the degenerate case), PNGs, JPEG and compressed, antialiased bitmapped fonts and text primitives are provided. Logical DLOs are instantiated on heap and listed into an lws_display_list owner, DLOs handle attributes like position, bounding box, colour + opacity, and local error diffusion backing buffer. When the display list is complete, it can be rasterized a line at a time, with scoped error diffusion resolved, such that no allocation for the framebuffer is required at any point. DLOs are freed as the rasterization moves beyond their bounding box. Adds a platform registry binding names and other metadata to lws_display fonts / PNGs / JPEGs. Provides registration, destruction and best match selection apis.
15 lines
327 B
Bash
Executable File
15 lines
327 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PIXEL_SIZES="10 12 14 16 20 24 32"
|
|
RANGES="0-255 0x2010-0x2015"
|
|
MCUFONT=../../../build/bin/lws-mcufont-encoder
|
|
|
|
for i in $PIXEL_SIZES ; do
|
|
$MCUFONT import_ttf $1 $i
|
|
DAT=`echo $1 | sed 's/\.ttf$//'`$i.dat
|
|
$MCUFONT filter $DAT $RANGES
|
|
$MCUFONT rlefont_optimize $DAT 50
|
|
$MCUFONT rlefont_export $DAT
|
|
done
|
|
|