NetSurf
Functions
font.h File Reference

Internal font handling interfaces. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void font_plot_style_from_css (const css_unit_ctx *unit_len_ctx, const css_computed_style *css, struct plot_font_style *fstyle)
 Populate a font style using data from a computed CSS style. More...
 

Detailed Description

Internal font handling interfaces.

These functions provide font related services. They all work on UTF-8 strings with lengths given.

Definition in file font.h.

Function Documentation

◆ font_plot_style_from_css()

void font_plot_style_from_css ( const css_unit_ctx *  unit_len_ctx,
const css_computed_style *  css,
struct plot_font_style fstyle 
)

Populate a font style using data from a computed CSS style.

Parameters
unit_len_ctxLength conversion context
cssComputed style to consider
fstyleFont style to populate

Definition at line 135 of file font.c.

References plot_font_style::background, plot_font_style::families, plot_font_style::family, plot_font_style::flags, plot_font_style::foreground, nscss_color_to_ns, nsoption_int, plot_font_flags(), plot_font_generic_family(), plot_font_weight(), PLOT_STYLE_SCALE, plot_font_style::size, and plot_font_style::weight.

Referenced by default_mouse_action(), form_open_select_menu(), html_redraw_file(), html_redraw_text_box(), html_selection_drag_end(), layout_block_context(), layout_line(), layout_lists(), layout_minmax_line(), mouse_action_drag_selection(), and selection_copy_box().

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