NetSurf
|
Internal font handling interfaces. More...
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... | |
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.
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.
unit_len_ctx | Length conversion context |
css | Computed style to consider |
fstyle | Font 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().