font_provider.h 465 B

12345678910111213141516171819
  1. #pragma once
  2. #include "font_info.h"
  3. #include <stdbool.h>
  4. #include <stddef.h>
  5. /**
  6. * @brief Gets total fonts available
  7. * @return total fonts available
  8. */
  9. size_t totp_font_provider_get_fonts_count();
  10. /**
  11. * @brief Load font with given index
  12. * @param font_index font index
  13. * @param[out] font_info font info to populate
  14. * @return \c true if font successfully load; \c false otherwise
  15. */
  16. bool totp_font_provider_get_font(size_t font_index, FontInfo* font_info);