1 /* $Id: fontface.hg,v 1.3 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 <pangomm/fontdescription.h>
25 #include <pango/pango-font.h>
28 _PINCLUDE(glibmm/private/object_p.h)
33 /** A Pango::FontFace is used to represent a group of fonts with the same family, slant, weight, width, but varying sizes.
35 class FontFace : public Glib::Object
37 _CLASS_GOBJECT(FontFace, PangoFontFace, PANGO_FONT_FACE, Glib::Object, GObject)
40 _WRAP_METHOD(FontDescription describe() const, pango_font_face_describe)
41 _WRAP_METHOD(Glib::ustring get_name() const, pango_font_face_get_face_name)
43 /** List the available sizes for a font. This is only applicable to bitmap fonts.
44 * For scalable fonts this returns an empty array.
45 * The sizes returned are in Pango units and are sorted in ascending order.
47 Glib::ArrayHandle<int> list_sizes() const;
48 _IGNORE(pango_font_face_list_sizes)
50 _WRAP_METHOD(bool is_synthesized() const, pango_font_face_is_synthesized)
53 //We can't wrap the virtual functions because PangoFontFace has a hidden class.
54 //We probably don't need to subclass this anyway.
55 //_WRAP_VFUNC(const char* get_name() const, "get_face_name")
56 //_WRAP_VFUNC(PangoFontDescription* describe(), "describe")
59 } /* namespace Pango */