NetSurf
font.h
Go to the documentation of this file.
1/*
2 * Copyright 2008 François Revol <mmu_man@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 * Beos font layout handling interface.
22 */
23
24#ifndef NS_BEOS_FONT_H
25#define NS_BEOS_FONT_H
26
27#include "netsurf/plot_style.h"
28
29bool nsfont_paint(const plot_font_style_t *fstyle,
30 const char *string, size_t length,
31 int x, int y);
32
33void nsbeos_style_to_font(BFont &font, const struct plot_font_style *fstyle);
34
36
37#endif
void nsbeos_style_to_font(BFont &font, const struct plot_font_style *fstyle)
Convert a font style to a PangoFontDescription.
Definition: font.cpp:53
struct gui_layout_table * beos_layout_table
Definition: font.cpp:373
bool nsfont_paint(const plot_font_style_t *fstyle, const char *string, size_t length, int x, int y)
Render a string.
Definition: font.cpp:312
plotter style interfaces, generic styles and style colour helpers.
Font style for plotting.
Definition: plot_style.h:111