1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
/*
* Copyright (c) 2004, 2014 by the gtk2-perl team (see the AUTHORS
* file for a full list of authors)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library 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 LICENSE file in the top-level directory of this distribution for
* the full license terms.
*
*/
#include "pango-perl.h"
MODULE = Pango::FontMap PACKAGE = Pango::FontMap PREFIX = pango_font_map_
=for object Pango::FontMap - an object that represents the set of fonts available for a particular rendering system
=cut
## PangoFont * pango_font_map_load_font (PangoFontMap *fontmap, PangoContext *context, const PangoFontDescription *desc)
PangoFont_ornull *
pango_font_map_load_font (fontmap, context, desc)
PangoFontMap *fontmap
PangoContext *context
const PangoFontDescription *desc
## PangoFontset * pango_font_map_load_fontset (PangoFontMap *fontmap, PangoContext *context, const PangoFontDescription *desc, PangoLanguage *language)
PangoFontset_ornull *
pango_font_map_load_fontset (fontmap, context, desc, language)
PangoFontMap *fontmap
PangoContext *context
const PangoFontDescription *desc
PangoLanguage *language
## void pango_font_map_list_families (PangoFontMap *fontmap, PangoFontFamily ***families, int *n_families)
void
pango_font_map_list_families (fontmap)
PangoFontMap *fontmap
PREINIT:
PangoFontFamily **families = NULL;
int n_families = 0, i;
PPCODE:
pango_font_map_list_families (fontmap, &families, &n_families);
if (families) {
EXTEND (sp, n_families);
for (i = 0; i < n_families; i++)
PUSHs (sv_2mortal (newSVPangoFontFamily (families[i])));
g_free (families);
}
|