Debian Codegraph @

testsuite/reftests/letter-spacing.c

raw
1 /*
2 * This library is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Library General Public
4 * License as published by the Free Software Foundation; either
5 * version 2 of the License, or (at your option) any later version.
6 *
7 * This library is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Library General Public License for more details.
11 *
12 * You should have received a copy of the GNU Library General Public
13 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
14 */
15
16 #include "config.h"
17
18 #include <gtk/gtk.h>
19
20
21 G_MODULE_EXPORT void
22 set_letter_spacing (GtkLabel *label)
23 {
24 PangoAttrList *attrs;
25
26 attrs = pango_attr_list_new ();
27 pango_attr_list_insert (attrs, pango_attr_letter_spacing_new (10 * PANGO_SCALE));
28 gtk_label_set_attributes (label, attrs);
29 pango_attr_list_unref (attrs);
30 }