toaruos/base/usr/include/toaru/sdf.h

15 lines
517 B
C

#pragma once
enum sdf_font {
SDF_FONT_THIN,
SDF_FONT_BOLD,
SDF_FONT_MONO,
SDF_FONT_MONO_BOLD,
SDF_FONT_MONO_OBLIQUE,
SDF_FONT_MONO_BOLD_OBLIQUE,
};
extern int draw_sdf_string(gfx_context_t * ctx, int32_t x, int32_t y, const char * str, int size, uint32_t color, int font);
extern int draw_sdf_string_width(const char * str, int size, int font);
extern int draw_sdf_string_gamma(gfx_context_t * ctx, int32_t x, int32_t y, const char * str, int size, uint32_t color, int font, double _gamma);