NetSurf
frontends
gtk
layout_pango.h
Go to the documentation of this file.
1
/*
2
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>
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
* Interface to GTK layout handling using pango.
22
*/
23
24
#ifndef _NETSURF_GTK_LAYOUT_PANGO_H_
25
#define _NETSURF_GTK_LAYOUT_PANGO_H_
26
27
#include <stdbool.h>
28
29
struct
plot_font_style
;
30
31
extern
struct
gui_layout_table
*
nsgtk_layout_table
;
32
33
nserror
nsfont_paint
(
int
x,
int
y,
const
char
*
string
,
size_t
length,
const
struct
plot_font_style
*fstyle);
34
35
/**
36
* Convert a plot style to a PangoFontDescription.
37
*
38
* \param fstyle plot style for this text
39
* \return A new Pango font description
40
*/
41
PangoFontDescription *
nsfont_style_to_description
(
const
struct
plot_font_style
*fstyle);
42
43
#endif
nserror
nserror
Enumeration of error codes.
Definition:
errors.h:29
nsfont_paint
nserror nsfont_paint(int x, int y, const char *string, size_t length, const struct plot_font_style *fstyle)
nsfont_style_to_description
PangoFontDescription * nsfont_style_to_description(const struct plot_font_style *fstyle)
Convert a plot style to a PangoFontDescription.
nsgtk_layout_table
struct gui_layout_table * nsgtk_layout_table
Definition:
layout_pango.c:317
gui_layout_table
Definition:
layout.h:38
plot_font_style
Font style for plotting.
Definition:
plot_style.h:111
Generated on Sun Oct 20 2024 12:52:26 for NetSurf by
1.9.4