summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2026-10-05 15:31:02 +0200
committerHelge Deller <deller@gmx.de>2026-10-19 13:56:01 +0200
commita88cef92063b16b42e6fa202ce199f0da3110e1f (patch)
tree2b4576eca94703d5d11145814a9f6b94ca344aee /include/linux
parent5c02696d1561f543e1b03967cb8224cb6c4a3493 (diff)
downloadlinux-a88cef92063b16b42e6fa202ce199f0da3110e1f.tar.gz
linux-a88cef92063b16b42e6fa202ce199f0da3110e1f.zip
lib/fonts: Add font_glyph_cursor() helper
The new helper font_glyph_cursor() fills a glyph with a cursor pattern. As with the font_glyph_rotate_*() helpers, the caller has to provide the output memory. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Helge Deller <deller@gmx.de> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/font.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/font.h b/include/linux/font.h
index 5e1cf9830084..be1a26ff8ae9 100644
--- a/include/linux/font.h
+++ b/include/linux/font.h
@@ -109,6 +109,10 @@ const unsigned char *font_data_glyph_buf(font_data_t *fd,
bool font_data_is_equal(font_data_t *lhs, font_data_t *rhs);
int font_data_export(font_data_t *fd, struct console_font *font, unsigned int vpitch);
+/* font_cursor.c */
+void font_glyph_cursor(unsigned int width, unsigned int height,
+ unsigned int from, unsigned int to, unsigned char *out);
+
/* font_rotate.c */
void font_glyph_rotate_90(const unsigned char *glyph, unsigned int width, unsigned int height,
unsigned char *out);