![]() |
L4Re Operating System Framework
Interface and Usage Documentation
|
Bitmap font renderer header file. More...
Go to the source code of this file.
Macros | |
| #define | GFXBITMAP_DEFAULT_FONT (void *)0 |
| Constant to use for the default font. | |
Enumerations | |
| enum | |
| Constant for length field. More... | |
Functions | |
| int | gfxbitmap_font_init (void) |
| Initialize the library. | |
| gfxbitmap_font_t | gfxbitmap_font_get (const char *name) |
| Get a font descriptor. | |
| unsigned | gfxbitmap_font_width (gfxbitmap_font_t font) |
| Get the font width. | |
| unsigned | gfxbitmap_font_height (gfxbitmap_font_t font) |
| Get the font height. | |
| void * | gfxbitmap_font_data (gfxbitmap_font_t font, unsigned c) |
| Get bitmap font data for a specific character. | |
| void | gfxbitmap_font_text (void *fb, l4re_video_view_info_t *vi, gfxbitmap_font_t font, const char *text, unsigned len, unsigned x, unsigned y, gfxbitmap_color_pix_t fg, gfxbitmap_color_pix_t bg) |
| Render a string to a framebuffer. | |
| void | gfxbitmap_font_text_scale (void *fb, l4re_video_view_info_t *vi, gfxbitmap_font_t font, const char *text, unsigned len, unsigned x, unsigned y, gfxbitmap_color_pix_t fg, gfxbitmap_color_pix_t bg, int scale_x, int scale_y) |
| Render a string to a framebuffer, including scaling. | |
Variables | |
| L4_BEGIN_DECLS typedef void * | gfxbitmap_font_t |
| Font. | |
Bitmap font renderer header file.
Definition in file font.h.
| anonymous enum |
| void * gfxbitmap_font_data | ( | gfxbitmap_font_t | font, |
| unsigned | c ) |
Get bitmap font data for a specific character.
| font | Font. |
| c | Character. |
References gfxbitmap_font_t, and L4_CV.
| gfxbitmap_font_t gfxbitmap_font_get | ( | const char * | name | ) |
Get a font descriptor.
| name | Name of the font. |
References gfxbitmap_font_t, and L4_CV.
| unsigned gfxbitmap_font_height | ( | gfxbitmap_font_t | font | ) |
Get the font height.
| font | Font. |
References gfxbitmap_font_t, and L4_CV.
| int gfxbitmap_font_init | ( | void | ) |
Initialize the library.
This function must be called before any other font function of this library.
References L4_CV.
| void gfxbitmap_font_text | ( | void * | fb, |
| l4re_video_view_info_t * | vi, | ||
| gfxbitmap_font_t | font, | ||
| const char * | text, | ||
| unsigned | len, | ||
| unsigned | x, | ||
| unsigned | y, | ||
| gfxbitmap_color_pix_t | fg, | ||
| gfxbitmap_color_pix_t | bg ) |
Render a string to a framebuffer.
| fb | Pointer to frame buffer. |
| vi | Frame buffer info structure. |
| font | Font. |
| text | Text string. |
| len | Length of the text string. |
| x | Horizontal position in the frame buffer. |
| y | Vertical position in the frame buffer. |
| fg | Foreground color. |
| bg | Background color. |
References gfxbitmap_font_t, and L4_CV.
| void gfxbitmap_font_text_scale | ( | void * | fb, |
| l4re_video_view_info_t * | vi, | ||
| gfxbitmap_font_t | font, | ||
| const char * | text, | ||
| unsigned | len, | ||
| unsigned | x, | ||
| unsigned | y, | ||
| gfxbitmap_color_pix_t | fg, | ||
| gfxbitmap_color_pix_t | bg, | ||
| int | scale_x, | ||
| int | scale_y ) |
Render a string to a framebuffer, including scaling.
| fb | Pointer to frame buffer. |
| vi | Frame buffer info structure. |
| font | Font. |
| text | Text string. |
| len | Length of the text string. |
| x | Horizontal position in the frame buffer. |
| y | Vertical position in the frame buffer. |
| fg | Foreground color. |
| bg | Background color. |
| scale_x | Horizonal scale factor. |
| scale_y | Vertical scale factor. |
References gfxbitmap_font_t, and L4_END_DECLS.
| unsigned gfxbitmap_font_width | ( | gfxbitmap_font_t | font | ) |
Get the font width.
| font | Font. |
References gfxbitmap_font_t, and L4_CV.