Blame pango/src/fontfamily.ccg
|
Packit Service |
2c3550 |
// -*- c++ -*-
|
|
Packit Service |
2c3550 |
/* $Id: fontfamily.ccg,v 1.1 2003/01/21 13:41:03 murrayc Exp $ */
|
|
Packit Service |
2c3550 |
|
|
Packit Service |
2c3550 |
/*
|
|
Packit Service |
2c3550 |
*
|
|
Packit Service |
2c3550 |
* Copyright 2001 The gtkmm Development Team
|
|
Packit Service |
2c3550 |
*
|
|
Packit Service |
2c3550 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
2c3550 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
2c3550 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
2c3550 |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
2c3550 |
*
|
|
Packit Service |
2c3550 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
2c3550 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
2c3550 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
2c3550 |
* Lesser General Public License for more details.
|
|
Packit Service |
2c3550 |
*
|
|
Packit Service |
2c3550 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
2c3550 |
* License along with this library; if not, write to the Free
|
|
Packit Service |
2c3550 |
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
Packit Service |
2c3550 |
*/
|
|
Packit Service |
2c3550 |
|
|
Packit Service |
2c3550 |
namespace Pango
|
|
Packit Service |
2c3550 |
{
|
|
Packit Service |
2c3550 |
|
|
Packit Service |
2c3550 |
Glib::ArrayHandle< Glib::RefPtr<FontFace> > FontFamily::list_faces() const
|
|
Packit Service |
2c3550 |
{
|
|
Packit Service |
2c3550 |
//Get the array:
|
|
Packit Service |
2c3550 |
PangoFontFace** pFontFaces = 0;
|
|
Packit Service |
2c3550 |
int n_fonts = 0;
|
|
Packit Service |
2c3550 |
pango_font_family_list_faces(const_cast<PangoFontFamily*>(gobj()), &pFontFaces, &n_fonts);
|
|
Packit Service |
2c3550 |
|
|
Packit Service |
2c3550 |
return Glib::ArrayHandle<Glib::RefPtr <FontFace> > (pFontFaces, n_fonts, Glib::OWNERSHIP_SHALLOW);
|
|
Packit Service |
2c3550 |
}
|
|
Packit Service |
2c3550 |
|
|
Packit Service |
2c3550 |
} /* namespace Pango */
|
|
Packit Service |
2c3550 |
|
|
Packit Service |
2c3550 |
|