common/font: Add scale argument

This commit is contained in:
Consolatis 2022-06-12 21:16:44 +02:00 committed by Johan Malm
parent 2aaf26e87b
commit f3a685155d
4 changed files with 10 additions and 10 deletions

View file

@ -24,7 +24,7 @@ int font_height(struct font *font);
* @color: foreground color in rgba format
*/
void font_buffer_create(struct lab_data_buffer **buffer, int max_width,
const char *text, struct font *font, float *color);
const char *text, struct font *font, float *color, double scale);
/**
* font_buffer_update - Wrapper around font_buffer_create
@ -32,7 +32,7 @@ void font_buffer_create(struct lab_data_buffer **buffer, int max_width,
* wlr_buffer_drop() will be called on the buffer.
*/
void font_buffer_update(struct lab_data_buffer **buffer, int max_width,
const char *text, struct font *font, float *color);
const char *text, struct font *font, float *color, double scale);
/**
* font_finish - free some font related resources