font_mempool.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*
  2. * Copyright (c) 2018 Actions Semiconductor Co., Ltd
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /**
  7. * @file font memory interface
  8. */
  9. #ifndef FRAMEWORK_DISPLAY_INCLUDE_FONT_MEMPOOL_H_
  10. #define FRAMEWORK_DISPLAY_INCLUDE_FONT_MEMPOOL_H_
  11. /**
  12. * @defgroup view_cache_apis View Cache APIs
  13. * @ingroup system_apis
  14. * @{
  15. */
  16. #include <stdint.h>
  17. #ifndef CONFIG_SIMULATOR
  18. #include <sdfs.h>
  19. #endif
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. /**
  24. * @brief get max fonts num
  25. */
  26. uint32_t bitmap_font_get_max_fonts_num(void);
  27. /**
  28. * @brief get font cache size
  29. *
  30. * @retval N/A
  31. */
  32. uint32_t bitmap_font_get_font_cache_size(void);
  33. /**
  34. * @brief get max emoji num
  35. *
  36. *
  37. * @retval N/A
  38. */
  39. uint32_t bitmap_font_get_max_emoji_num(void);
  40. uint32_t bitmap_font_get_cmap_cache_size(void);
  41. /**
  42. * @brief dump cache size info
  43. *
  44. */
  45. void bitmap_font_cache_info_dump(void);
  46. /**
  47. * @brief get high freq config status
  48. *
  49. */
  50. int bitmap_font_get_high_freq_enabled(void);
  51. int bitmap_font_glyph_debug_is_on(void);
  52. int bitmap_font_glyph_err_print_is_on(void);
  53. void* bitmap_font_cache_malloc(uint32_t size);
  54. void bitmap_font_cache_free(void* ptr);
  55. void bitmap_font_cache_init(void);
  56. uint32_t bitmap_font_cache_get_size(void* ptr);
  57. void bitmap_font_cache_dump_info(void);
  58. void bitmap_font_get_decompress_param(int bmp_size, int font_size, int* in_size, int* line_size);
  59. int freetype_font_get_max_face_num(void);
  60. int freetype_font_get_max_size_num(void);
  61. int freetype_font_get_max_ftccache_bytes(void);
  62. uint32_t freetype_font_get_font_cache_size(void);
  63. int freetype_font_get_font_fixed_bpp(void);
  64. int freetype_font_get_memory_face_enabled(void);
  65. int freetype_font_enable_subpixel(void);
  66. int freetype_font_use_svg_path(void);
  67. int freetype_font_get_max_vertices(void);
  68. int emoji_font_use_mmap(void);
  69. void* freetype_font_shape_cache_malloc(uint32_t size);
  70. void freetype_font_shape_cache_free(void* ptr);
  71. int freetype_font_get_shape_info_size(void);
  72. #ifdef __cplusplus
  73. }
  74. #endif
  75. /**
  76. * @}
  77. */
  78. #endif /* FRAMEWORK_DISPLAY_INCLUDE_FONT_MEMPOOL_H_ */