NetSurf
Data Structures | Macros | Enumerations | Functions
font_internal.h File Reference
#include <stdbool.h>
Include dependency graph for font_internal.h:
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

◆ codepoint_displayable

#define codepoint_displayable (   u)     (!(u >= 0x200b && u <= 0x200f))

Definition at line 43 of file font_internal.h.

◆ FB_FONT_HEIGHT

#define FB_FONT_HEIGHT   16

Definition at line 30 of file font_internal.h.

◆ FB_FONT_PITCH

#define FB_FONT_PITCH   8

Definition at line 31 of file font_internal.h.

◆ FB_FONT_WIDTH

#define FB_FONT_WIDTH   8

Definition at line 29 of file font_internal.h.

Enumeration Type Documentation

◆ fb_font_style

Enumerator
FB_REGULAR 
FB_ITALIC 
FB_BOLD 
FB_BOLD_ITALIC 

Definition at line 33 of file font_internal.h.

Function Documentation

◆ fb_get_font_size()

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().

Here is the caller graph for this function:

◆ fb_get_font_style()

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().

Here is the caller graph for this function:

◆ fb_get_glyph()

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().

Here is the call graph for this function:
Here is the caller graph for this function: