NetSurf
content
handlers
html
font.h
Go to the documentation of this file.
1
/*
2
* Copyright 2014 Vincent Sanders <vince@netsurf-browser.org>
3
*
4
* This file is part of NetSurf, http://www.netsurf-browser.org/
5
*
6
* NetSurf is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
9
*
10
* NetSurf is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
/**
20
* \file
21
* Internal font handling interfaces.
22
*
23
* These functions provide font related services. They all work on
24
* UTF-8 strings with lengths given.
25
*/
26
27
#ifndef NETSURF_HTML_FONT_H
28
#define NETSURF_HTML_FONT_H
29
30
struct
plot_font_style
;
31
32
/**
33
* Populate a font style using data from a computed CSS style
34
*
35
* \param unit_len_ctx Length conversion context
36
* \param css Computed style to consider
37
* \param fstyle Font style to populate
38
*/
39
void
font_plot_style_from_css
(
const
css_unit_ctx *unit_len_ctx,
40
const
css_computed_style *css,
41
struct
plot_font_style
*fstyle);
42
43
#endif
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.
Definition:
font.c:135
plot_font_style
Font style for plotting.
Definition:
plot_style.h:111
Generated on Fri Nov 15 2024 15:34:02 for NetSurf by
1.9.4