![]() |
microvg
2.0.0
microvg
|
Freetype bitmap helper implementation header for VectorGraphics Low Level API. More...
#include <stdint.h>
#include <ft2build.h>
#include <freetype/internal/ftobjs.h>
#include <LLVG_FONT_PAINTER_impl.h>
#include <LLVG_FONT_impl.h>
Go to the source code of this file.
Data Structures | |
struct | Freetype_context_type |
Data structure for pack all the variables required by freetype handler. More... | |
struct | transform_matrix |
Macros | |
#define | METRICS_DIVISOR 6 |
#define | FT_HELPER_X_MIN 0 |
#define | FT_HELPER_Y_MIN 0 |
#define | FREETYPE_OK 0 |
#define | FREETYPE_INTERNAL_ERROR -1 |
#define | FREETYPE_NOT_IMPLEMENTED -2 |
#define | TRANSFORM_MATRIX_POS_X 2 |
#define | TRANSFORM_MATRIX_POS_Y 5 |
#define | FT_RED_SHIFT 16 |
#define | FT_GREEN_SHIFT 8 |
#define | FT_BLUE_SHIFT 0 |
#define | max(X, Y) (((X) > (Y)) ? (X) : (Y)) |
#define | min(X, Y) (((X) < (Y)) ? (X) : (Y)) |
Typedefs | |
typedef struct transform_matrix | transform_matrix_t |
Functions | |
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. More... | |
void | ft_helper_free (Freetype_context_type *freetype_context) |
Frees all Freetype data context. More... | |
Freetype bitmap helper implementation header for VectorGraphics Low Level API.
Definition in file freetype_bitmap_helper.h.
#define FREETYPE_INTERNAL_ERROR -1 |
Error code returned when an error occurred after a call of a freetype function.
Definition at line 44 of file freetype_bitmap_helper.h.
#define FREETYPE_NOT_IMPLEMENTED -2 |
Error code returned when the function is not implemented.
Definition at line 45 of file freetype_bitmap_helper.h.
#define FREETYPE_OK 0 |
Error code returned when function execution is successful.
Definition at line 43 of file freetype_bitmap_helper.h.
#define FT_HELPER_X_MIN 0 |
The min start x coordinate to draw a glyph.
Definition at line 40 of file freetype_bitmap_helper.h.
#define FT_HELPER_Y_MIN 0 |
The min start y coordinate to draw a glyph.
Definition at line 41 of file freetype_bitmap_helper.h.
#define METRICS_DIVISOR 6 |
The divider coefficient used to pass from 1/64th of pixels unit to pixels unit.
Definition at line 38 of file freetype_bitmap_helper.h.
#define TRANSFORM_MATRIX_POS_X 2 |
Position of the x coordinate inside the transform matrix when in 1D-array form.
Definition at line 47 of file freetype_bitmap_helper.h.
#define TRANSFORM_MATRIX_POS_Y 5 |
Position of the y coordinate inside the transform matrix when in 1D-array form.
Definition at line 48 of file freetype_bitmap_helper.h.
void ft_helper_free | ( | Freetype_context_type * | freetype_context | ) |
Frees all Freetype data context.
[in] | Freetype | context of the job. |
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.
[in] | gc | Pointer to MicroUI GraphicsContext. |
[in] | freetype_context | The Freetype context with font face data. |
[in] | string | Pointer of the string. |
[in] | s_size | Lenght of the string in characters. |
[in] | x | The X coordinate in the frame-buffer pointer. |
[in] | y | The Y coordinate in the frame-buffer pointer. |
[in] | color | The 32 bits ARGB color of the string. |
[in] | alpha | The opacity coefficient. |
[in] | size | The character size. |
[in] | blend | the blend mode to use |
[in] | letterSpacing | the extra letter spacing to use |