altos/draw: Add ao_text_width
authorKeith Packard <keithp@keithp.com>
Sun, 28 Jan 2024 07:10:28 +0000 (23:10 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 1 Feb 2024 01:50:19 +0000 (17:50 -0800)
commitd1fd9055898fb07033b80f3d9d677a97d485fb2f
treeb4cd82e0eead5d0b1d1c27b601ef604db659487c
parentf9103d13f620cb06642aacdff9dcaf05e87d671f
altos/draw: Add ao_text_width

Computes the total advance of the given string, not the width of the
resulting ink.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/draw/ao_draw.h
src/draw/ao_text_width.c [new file with mode: 0644]