1 /* $Id: fontmap.hg,v 1.2 2004/03/03 01:07:40 murrayc Exp $ */
5 * Copyright 2001 The gtkmm Development Team
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the Free
19 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #include <glibmm/object.h>
24 #include <glibmm/arrayhandle.h>
25 #include <pangomm/font.h>
26 #include <pangomm/fontset.h>
27 #include <pangomm/fontfamily.h>
28 #include <pango/pango-fontmap.h>
31 _PINCLUDE(glibmm/private/object_p.h)
38 /** A Pango::FontMap represents the set of fonts available for a particular rendering system.
40 class FontMap : public Glib::Object
42 _CLASS_GOBJECT(FontMap, PangoFontMap, PANGO_FONT_MAP, Glib::Object, GObject)
43 _IGNORE(pango_font_map_list_families)
46 _WRAP_METHOD(Glib::RefPtr<Font> load_font(const Glib::RefPtr<Context>& context, const FontDescription& desc) const, pango_font_map_load_font)
47 _WRAP_METHOD(Glib::RefPtr<Fontset> load_fontset(const Glib::RefPtr<Context>& context, const FontDescription& desc, const Language& language) const, pango_font_map_load_fontset)
49 /** List all families for the fontmap.
50 * @return an array of pointers to Pango::FontFamily objects.
52 Glib::ArrayHandle< Glib::RefPtr<FontFamily> > list_families() const;
54 //This is not used unless ENABLE_BACKEND is defined: _WRAP_METHOD(Glib::ustring get_shape_engine_type() const, pango_font_map_get_shape_engine_type)
55 _IGNORE(pango_font_map_get_shape_engine_type)
58 } /* namespace Pango */