1/* Pango
2 * pango-fontset-simple.h: Font set handling
3 *
4 * Copyright (C) 2001 Red Hat Software
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
20 */
21
22#ifndef __PANGO_FONTSET_SIMPLE_H__
23#define __PANGO_FONTSET_SIMPLE_H__
24
25#include <pango/pango-coverage.h>
26#include <pango/pango-types.h>
27#include <pango/pango-fontset.h>
28
29#include <glib-object.h>
30
31G_BEGIN_DECLS
32
33/**
34 * PangoFontsetSimple:
35 *
36 * `PangoFontsetSimple` is a implementation of the abstract
37 * `PangoFontset` base class as an array of fonts.
38 *
39 * When creating a `PangoFontsetSimple`, you have to provide
40 * the array of fonts that make up the fontset.
41 */
42#define PANGO_TYPE_FONTSET_SIMPLE (pango_fontset_simple_get_type ())
43#define PANGO_FONTSET_SIMPLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONTSET_SIMPLE, PangoFontsetSimple))
44#define PANGO_IS_FONTSET_SIMPLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONTSET_SIMPLE))
45
46typedef struct _PangoFontsetSimple PangoFontsetSimple;
47typedef struct _PangoFontsetSimpleClass PangoFontsetSimpleClass;
48
49
50PANGO_AVAILABLE_IN_ALL
51GType pango_fontset_simple_get_type (void) G_GNUC_CONST;
52
53PANGO_AVAILABLE_IN_ALL
54PangoFontsetSimple * pango_fontset_simple_new (PangoLanguage *language);
55PANGO_AVAILABLE_IN_ALL
56void pango_fontset_simple_append (PangoFontsetSimple *fontset,
57 PangoFont *font);
58PANGO_AVAILABLE_IN_ALL
59int pango_fontset_simple_size (PangoFontsetSimple *fontset);
60
61
62G_END_DECLS
63
64#endif /* __PANGO_FONTSET_SIMPLE_H__ */
65

source code of include/pango-1.0/pango/pango-fontset-simple.h