15 #ifndef FREETYPE_BITMAP_HELPER_H_ 16 #define FREETYPE_BITMAP_HELPER_H_ 27 #include FT_FREETYPE_H 28 #include <freetype/internal/ftobjs.h> 30 #include <LLVG_FONT_PAINTER_impl.h> 31 #include <LLVG_FONT_impl.h> 38 #define METRICS_DIVISOR 6 40 #define FT_HELPER_X_MIN 0 41 #define FT_HELPER_Y_MIN 0 44 #define FREETYPE_INTERNAL_ERROR -1 45 #define FREETYPE_NOT_IMPLEMENTED -2 47 #define TRANSFORM_MATRIX_POS_X 2 48 #define TRANSFORM_MATRIX_POS_Y 5 51 #define FT_RED_SHIFT 16 53 #define FT_GREEN_SHIFT 8 55 #define FT_BLUE_SHIFT 0 89 #define max(X, Y) (((X) > (Y)) ? (X) : (Y)) 99 #define min(X, Y) (((X) < (Y)) ? (X) : (Y)) 118 int ft_helper_print_jstring_clipped(MICROUI_GraphicsContext* gc,
Freetype_context_type *freetype_context, jchar*
string, jint s_size, jint x, jint y, jint color, jint alpha, jfloat size, jint blend, jfloat letterSpacing);
130 static void ft_helper_write_to_framebuffer_clipped(MICROUI_GraphicsContext* gc,
Freetype_context_type *freetype_context, jint x, jint y, jint color, jint alpha);
148 #endif // FREETYPE_BITMAP_HELPER_H_ void ft_helper_free(Freetype_context_type *freetype_context)
Frees all Freetype data context.
Data structure for pack all the variables required by freetype handler.
int ft_helper_print_jstring_clipped(MICROUI_GraphicsContext *gc, Freetype_context_type *freetype_context, jchar *string, jint s_size, jint x, jint y, jint color, jint alpha, jfloat size, jint blend, jfloat letterSpacing)
Prints a string in a buffer respecting the clipping area of the MicroUI Graphics Context.