/* $Id: fontface.hg,v 1.3 2004/03/03 01:07:40 murrayc Exp $ */ /* fontface.h * * Copyright 2001 The gtkmm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include #include _DEFS(pangomm,pango) _PINCLUDE(glibmm/private/object_p.h) namespace Pango { /** A Pango::FontFace is used to represent a group of fonts with the same family, slant, weight, width, but varying sizes. */ class FontFace : public Glib::Object { _CLASS_GOBJECT(FontFace, PangoFontFace, PANGO_FONT_FACE, Glib::Object, GObject) public: _WRAP_METHOD(FontDescription describe() const, pango_font_face_describe) _WRAP_METHOD(Glib::ustring get_name() const, pango_font_face_get_face_name) /** List the available sizes for a font. This is only applicable to bitmap fonts. * For scalable fonts this returns an empty array. * The sizes returned are in Pango units and are sorted in ascending order. */ Glib::ArrayHandle list_sizes() const; _IGNORE(pango_font_face_list_sizes) _WRAP_METHOD(bool is_synthesized() const, pango_font_face_is_synthesized) protected: //We can't wrap the virtual functions because PangoFontFace has a hidden class. //We probably don't need to subclass this anyway. //_WRAP_VFUNC(const char* get_name() const, "get_face_name") //_WRAP_VFUNC(PangoFontDescription* describe(), "describe") }; } /* namespace Pango */