Mercurial > molko
diff libcore/core/font.h @ 226:dd7c8d4321a3
misc: miscellaneous cleanups
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 19 Nov 2020 10:17:04 +0100 |
parents | 6992085d47fd |
children |
line wrap: on
line diff
--- a/libcore/core/font.h Wed Nov 18 19:52:14 2020 +0100 +++ b/libcore/core/font.h Thu Nov 19 10:17:04 2020 +0100 @@ -28,8 +28,6 @@ #include <stdbool.h> #include <stddef.h> -#include <core/plat.h> - struct texture; /** @@ -59,7 +57,7 @@ * \return False on errors. */ bool -font_open(struct font *font, const char *path, unsigned int size) PLAT_NODISCARD; +font_open(struct font *font, const char *path, unsigned int size); /** * Open font from memory buffer. @@ -74,7 +72,7 @@ * \return False on errors. */ bool -font_openmem(struct font *font, const void *buffer, size_t buflen, unsigned int size) PLAT_NODISCARD; +font_openmem(struct font *font, const void *buffer, size_t buflen, unsigned int size); /** * Convenient shortcut to shallow copy src into dst. @@ -117,7 +115,7 @@ * \return False on errors. */ bool -font_render(struct font *font, struct texture *tex, const char *text, unsigned int color) PLAT_NODISCARD; +font_render(struct font *font, struct texture *tex, const char *text, unsigned int color); /** * Get the maximum height for all glyphs. @@ -141,7 +139,7 @@ * \return False in case of error and pointers to w and h are left unmodified. */ bool -font_query(const struct font *font, const char *text, unsigned int *w, unsigned int *h) PLAT_NODISCARD; +font_query(const struct font *font, const char *text, unsigned int *w, unsigned int *h); /** * Close the font.