vboot/screens: Add handling for unprintable character to draw_text()
This patch enhances draw_text() to better handle unavailable (e.g.
unprintable) characters (by drawing a '?' rather than stopping with the
whole string right then and there). Pull the width measurement into
get_char_image_filename() since all callers need to do that anyway, and
also change the signature so that the function is no longer expected to
sprintf() into a string buffer it doesn't know the length of.
TEST=with other patches
Signed-off-by: Julius Werner <email@example.com>
Reviewed-by: Randall Spangler <firstname.lastname@example.org>
Reviewed-by: Furquan Shaikh <email@example.com>
Reviewed-by: Mathew King <firstname.lastname@example.org>
1 file changed