NetSurf
|
#include <stdbool.h>
Go to the source code of this file.
Data Structures | |
struct | fb_font_desc |
Macros | |
#define | FB_FONT_WIDTH 8 |
#define | FB_FONT_HEIGHT 16 |
#define | FB_FONT_PITCH 8 |
#define | codepoint_displayable(u) (!(u >= 0x200b && u <= 0x200f)) |
Enumerations | |
enum | fb_font_style { FB_REGULAR = 0 , FB_ITALIC = (1 << 0) , FB_BOLD = (1 << 1) , FB_BOLD_ITALIC = (FB_ITALIC | FB_BOLD) } |
Functions | |
enum fb_font_style | fb_get_font_style (const plot_font_style_t *fstyle) |
int | fb_get_font_size (const plot_font_style_t *fstyle) |
const uint8_t * | fb_get_glyph (uint32_t ucs4, enum fb_font_style style, int scale) |
#define codepoint_displayable | ( | u | ) | (!(u >= 0x200b && u <= 0x200f)) |
Definition at line 43 of file font_internal.h.
#define FB_FONT_HEIGHT 16 |
Definition at line 30 of file font_internal.h.
#define FB_FONT_PITCH 8 |
Definition at line 31 of file font_internal.h.
#define FB_FONT_WIDTH 8 |
Definition at line 29 of file font_internal.h.
enum fb_font_style |
Enumerator | |
---|---|
FB_REGULAR | |
FB_ITALIC | |
FB_BOLD | |
FB_BOLD_ITALIC |
Definition at line 33 of file font_internal.h.
int fb_get_font_size | ( | const plot_font_style_t * | fstyle | ) |
Definition at line 212 of file font_internal.c.
References nsoption_int, PLOT_STYLE_SCALE, and plot_font_style::size.
Referenced by fb_font_position(), fb_font_split(), fb_font_width(), and framebuffer_plot_text().
enum fb_font_style fb_get_font_style | ( | const plot_font_style_t * | fstyle | ) |
Definition at line 199 of file font_internal.c.
References FB_BOLD, FB_ITALIC, FB_REGULAR, plot_font_style::flags, FONTF_ITALIC, FONTF_OBLIQUE, and plot_font_style::weight.
Referenced by framebuffer_plot_text().
const uint8_t * fb_get_glyph | ( | uint32_t | ucs4, |
enum fb_font_style | style, | ||
int | scale | ||
) |
Definition at line 250 of file font_internal.c.
References fallthrough, FB_BOLD, FB_BOLD_ITALIC, FB_ITALIC, FB_REGULAR, get_codepoint(), and glyph_scale_2().
Referenced by framebuffer_plot_text().