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